![]() |
|||||
![]() |
|||||
![]() |
![]() Basics of use For a simpler approach, check out the control panel options. To modify an existing HTML form to work with the script cgiemail you will need to use the following form action within your HTML code:
Please Note: If you are a FrontPage user with the FrontPage 2000 extensions installed on your site, you will use this path instead:
This code calls the preinstalled script cgiemail which is in the server's cgi-bin directory once the web page visitor clicks the "submit" button. The script cgiemail in turn calls a text file (or template) called mailform.txt. The template defines the format by which the submitted form content is to be sent via e-mail. Create the template in a basic text editor (such as MS Notepad, Ultra Edit, or other product). Always start it with the following two lines: To: username@yourbiz.com Subject: The Information Requested Substitute the desired recipient e-mail address and subject above. If your form asks for the e-mail address of the visitor (be sure to name this field: e-mail), add this as the second line of the template:
There can be no blank lines at the top of the file and no blank spaces at the beginning of these header lines. Next, you will need to add ALL field names within the html form to the template in a form similar to the following: To: username@yourbiz.com From: [e-mail] Subject: Information Request Name [realname] Address [address] Phone [telno] As long as each form field name is contained within brackets ("[ ]") within the template, the e-mail should be sent successfully and contain all submitted data. We suggest using all lowercase field names within your html form and template. If you want a specific web page to load when the e-mail is successfully sent, such as a thank you note, add the following code to your html form:
Substitute the URL of the file you wish to load after form data is submitted. The field name in this case MUST be "success", but does not need to be added to the template.
IMPORTANT POINTS:
Having Us Set Up a Form for YouOffice On Web can setup your form for you at our standard hourly rates for html. We can also develop custom secure forms or shopping carts. To request us to do this use the Technical Contact Form and specify:
For some very useful information on cgi scripts, please consult our CGI FAQ. |