help needed with basic web form

Soldato
Joined
25 Oct 2002
Posts
4,198
Location
Derbyshire
I made a form in frontpage to collect basic data and mail it to members at the moment it mails something like this

  • Date: 05:08:2007
  • Dive_location: Stoney
  • Meeting_place: shed at 9am
  • Maximum_Depth: 20m
  • Minimum_qualification_Required: Training
  • Who_to_contact: Chris
  • Contact_number: 0123456
  • Date: 14 August 2007
Any_other_info

Bring an smb.


I would like it to look like this

Hi,

Chris is arranging a dive to Stoney. Maximum depth will be 20m etc.....

I want the data points saved to make a proper looking email. how can i do this?


Please speak in noob talk :)
 
Can you post the code you're using at the moment?

The way I'd do it would be to use JavaScript to take the values from the form and then insert them into the right "blanks" in strings, then submit the completed strings to the mailing script.

But it would be easier to show you how to modify your code if I had the existing one ;)

Jon
 
erm... i'll try

<div style="position: absolute; width: 803px; height: 708px; z-index: 1; left: 199px; top: 31px" id="layer1">
<form method="POST" action="--WEBBOT-SELF--" onSubmit="location.href='../_derived/nortbots.htm';return false;" webbot-onSubmit>
<!--webbot bot="SaveResults" U-File="../_private/Dive.htm" S-Format="HTML/BR" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" S-Email-Format="HTML/UL" S-Email-Address="[email protected]" B-Email-Label-Fields="TRUE" S-Date-Format="%d %B %Y" S-Builtin-Fields="Date" S-Form-Fields="Date Dive_location Meeting_place Maximum_Depth Minimum_qualification_Required Who_to_contact Contact_number Any_other_info " startspan --><input TYPE="hidden" NAME="VTI-GROUP" VALUE="0"><!--webbot bot="SaveResults" i-checksum="43374" endspan -->
<p align="center"><!--[if gte vml 1]><v:shapetype id="_x0000_t136"
coordsize="21600,21600" o:spt="136" adj="10800" path="m@7,l@8,m@5,21600l@6,21600e">



Does that look like the right bit? :confused:

http://fp.theblue.plus.com/Contact us/trip booker.htm Thats the page as it is at the moment.
 
That looks like a pre-written CGI script that literally takes the user input and emails it to the users, along with the field names.

I have never worked properly with form-to-mail scripts, so I can't help too much. But in short, you probably need an entirely new script.

I'm sure someone else will be alone soon to help you further :) I'll keep an eye on this thread though, I'm interested :D

Jon
 
Back
Top Bottom