Form Mail Script
A "form mail" script enables you to have the contents of a submitted web form sent via email. This is good for creating a contact or order form where a visitor completes the information online and that information is then sent to you in an email message. If you need advanced form processing capabilities please contact us about custom web development.
Step 1.
Create your form as normal with all the appropriate fields and values.
Step 2.
Change your form method to "post" with the action of "/cgi-bin/forms.cgi"
Step 3.
Create the following hidden fields in your form, replacing the values with appropriate settings:
<input type="hidden" name="recipient" value="receiver@email.address">
<input type="hidden" name="redirect" value="http://www.where.to.go/after.html">
Step 4.
Add any of the following optional hidden fields to increase the functionality of the form:
<input type="hidden" name="email" value="sender@email.address">
<input type="hidden" name="subject" value="Subject for message">
<input type="hidden" name="required" value="Field1,Field3">
<input type="hidden" name="sort" value="order:Field1,Field2,Field3">
<input type="hidden" name="single_space" value="true">
...please note if you use the 'sort' option that you must list all of the fields you wanted in the email as any fields not listed will not be included in the emailed message. If you do not use the sort field then the order is random and the contents of every field on the form will be emailed to you.
Example:
<form method="post" action="/cgi-bin/forms.cgi">
Enter your name: <input type="text" name="Name"><br>
Enter your age: <input type="text" name="Age">
<input type="hidden" name="recipient" value="you@yoursite.com">
<input type="hidden" name="redirect" value="http://www.yoursite.com/thankyou.html">
<input type="hidden" name="required" value="Name">
<input type="hidden" name="sort" value="order:Name,Age">
<input type="hidden" name="single_space" value="true">
</form>



