View Full Version : Creating a Form to post to my Email

12-30-2005, 01:22 PM
I wanted to make a quick Form & started using frontpage.

I havent used it for a while.

Heres my code so far. the dropdown lists, I have not added the info for the lists as yet.

How do I get it to post it so that when I press submit.
All the completed fields & the list selections, is emailed to me?


<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Flying from</title>


<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults"
U-File="C:\Documents and Settings\c5479\Desktop\Form\_private\form_results.txt"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE"
S-Email-Format="TEXT/PRE" S-Email-Address="lee.egglestone@durham.gov.uk"
B-Email-Label-Fields="TRUE" S-Builtin-Fields -->
<p>Flying from : 1st Choice&nbsp;&nbsp;&nbsp; <!--webbot bot="Validation"
S-Display-Name="1st Choice" B-Value-Required="TRUE" --><select size="1" name="D1">
</select>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; 2nd Choice&nbsp;&nbsp;&nbsp; <select size="1" name="D2">
</select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3rd
Choice&nbsp;&nbsp;&nbsp; <select size="1" name="D3">
<p>Flying To <!--webbot bot="Validation" S-Display-Name="Flying To"
S-Data-Type="String" B-Allow-Letters="TRUE" --><input type="text" name="T1" size="20"></p>
<p>Depart&nbsp;&nbsp;&nbsp; </p>
<p>or Approx Duration <!--webbot bot="Validation" S-Display-Name="Duration"
S-Data-Type="Number" S-Number-Separators=",." --><input type="text" name="T2" size="20"></p>
<p>Flexible Date +/- 3days&nbsp;&nbsp;&nbsp; <input type="checkbox" name="C1" value="ON"></p>
<p>Adults&nbsp;&nbsp;&nbsp; <!--webbot bot="Validation"
S-Display-Name="Adults" B-Value-Required="TRUE" --><select size="1" name="D4">
<option selected>1</option>
</select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Children&nbsp;&nbsp;&nbsp;
<select size="1" name="D5">
<option selected>0</option>
<p>If Children, state Ages&nbsp;&nbsp;&nbsp; <input type="text" name="T3" size="20"></p>
<p>No of Rooms&nbsp;&nbsp;&nbsp; <!--webbot bot="Validation"
S-Display-Name="Rooms" B-Value-Required="TRUE" --><select size="1" name="D6">
<option selected>1</option>
<p>Star&nbsp;&nbsp;&nbsp; <!--webbot bot="Validation" B-Value-Required="TRUE"
--><input type="radio" value="V1" checked name="R1">&nbsp;&nbsp;
1-3&nbsp;&nbsp;&nbsp; <input type="radio" name="R1" value="V2">&nbsp;&nbsp;&nbsp;
4-5&nbsp; <input type="radio" name="R1" value="V3">&nbsp;&nbsp; 5+</p>
<p>Email Address&nbsp;&nbsp;&nbsp; <input type="text" name="T4" size="20">
required for Quote. Entering also subscribes to Special Offers &amp; Updates.</p>
<p>Do you require Insurance
Quote&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="checkbox" name="C2" value="ON" checked>Yes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="checkbox" name="C3" value="ON"> No</p>
<p>Do you require Car Parking
Quote&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="checkbox" name="C4" value="ON" checked>
Yes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="checkbox" name="C5" value="ON">
<p>Any Other Details</p>
<p><textarea rows="6" name="S1" cols="74"></textarea></p>
<p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>



12-30-2005, 01:49 PM
[ CODE ] [ / CODE ]

You can either use a server side language such as PHP. Or simply set the forms action to your email address.

<form method="POST" action="youremail@email.com">

That would open a new email in their default client though.

12-30-2005, 02:07 PM
Hmm Im presuming the free webhosting sites dont let you use stuff like php.

I have a geocities website. I was just going to create a page on it and then use a link to redirect to the correct page which I will have this Form on.

For the form, i dont like the idea that using the post to my email, that to do so, the person posting would have to get there email client opened to send it.

PHP does sound the better option

Oh wait, on my geocities site, i found a forum i used before.
its got something called Response-O-Matic service.
I tried it, filled in theform and it mailed the results back 2me