Web Form to E-mail
What is Web Form to E-mail? How do I install the script on my page? Troubleshooting
What is Web Form to E-mail?
The Web Form to E-mail CGI is a script which takes the data from a fill-in form on your home page and sends it to a specified e-mail address. An acknowledgement page is presented after a form is submitted.
Uses include online surveys and questionnaires, as well as order taking. Customers should note however that any Internet data can potentially be intercepted. The script should therefore not be used for the transmission of sensitive data such as credit card details.
How do I install the script on my page?
Below is a sample form which you can copy into the HTML of your home page.
The script is case sensitive, so copy it as is (you can of course change
the fields, checkboxes, etc). For more help with constructing forms, see
Carlos's
Form Tutorial.
<html> <head> <title>Your title</title> </head> <body>
<form method="post" action="http://www.btinternet.com/cgi-bin/userform.cgi">
<!--The title and URL of the form will be listed at the top of the e-mail--> <input type="hidden" name="Form title" value="Source of form">
<!--Specify the e-mail address to which data from the form should be sent--> <input type="hidden" name="SendMailTo" value="youremailname@btinternet.com"> <!--Specify the acknowledgement page to be seen by customers who have sent in the form--> <input type="hidden" name="redirect" value="http://www.btinternet.com/~yourpage/yourresponse.htm">
<h1>Form title here</h1> <p>explanatory text here</p>
<pre>
<b>Name</b> <input name="Name">
<b>E-mail address</b> <input name="E-mail address">
<b>Other info</b> <input name="Other info">
<b>Description</b> <textarea name="Description of pages" rows=5 cols=50></textarea>
<b>Radio buttons</b> <input type="radio" name="year" value="1997"> 1997 <input type="radio" name="year" value="1996"> 1996 <input type="radio" name="year" value="1995"> 1995 <input type="radio" name="year" value="1994"> 1994
<b>Check boxes</b>
<input type="checkbox" name="category" value="choice A"> Choice A <input type="checkbox" name="category" value="choice B"> Choice B <input type="checkbox" name="category" value="choice C"> Choice C <input type="checkbox" name="category" value="choice D"> Choice D </pre> <hr> <center> <input type="submit" value="Submit"> <input type="Reset" value="Start Again"> </center> </form> </body> </html>
Troubleshooting
If you're having difficulties with the Form to E-mail script, check that:
- You have specified a valid acknowledgement page for after the form has been submitted, and that it is in the following format:
<input type="hidden" name="redirect" value="http://www.btinternet.com/~yourpage/yourresponse.htm"> where ~yourpage/ is the e-mail name used in your home page's URL, and yourresponse.htm is the name of the acknowledgement page.
- You have copied the script from this page as is, i.e you have not changed the case of the script. As an example, in the tag:
<input type="hidden" name="SendMailTo" value="youremailname@btinternet.com"> If you change the word SendMailTo to sendmailto, the script will not work.
|