- Start the form with:
<FORM METHOD="post" ACTION="http://www.yourdomain.com/cgi-bin/reqform">
- Add the e-mail address you want the form information emailed back to:
<INPUT TYPE="hidden" NAME="mailto" VALUE="username@yourdomain.com">
- Add a subject line for the e-mail:
<INPUT TYPE="hidden" NAME="subject" VALUE="the subject of the e-mail">
- Create the form fields. See examples below.
- Add Submit and Reset buttons:
<INPUT TYPE="submit" VALUE=" Submit ">
<INPUT TYPE="reset" VALUE=" Reset Form ">
- Optional: Indicate required fields:
<INPUT TYPE="hidden" NAME="required_fields" VALUE="field names separated by commas">
- Optional: Add a custom acknowledgement page:
<INPUT TYPE="hidden" NAME="acknowledge_page" VALUE="http://www.yourdomain.com/acknowledge.html">
- Optional: Add formating to the confirmation screen that the user sees before the form is submitted:
<INPUT TYPE="hidden" NAME="form_title" VALUE="Title of Form">
<INPUT TYPE="hidden" NAME="form_fontsize" VALUE="2">
<INPUT TYPE="hidden" NAME="form_fontface" VALUE="Arial, Helvetica">
<INPUT TYPE="hidden" NAME="form_message" VALUE="Please review the information you entered for
accuracy.<BR> If you need to make a correction, click the BACK button.<BR> If the information shown is correct,
click the OK button.">
<INPUT TYPE="hidden" NAME="table_width" VALUE="50%">
- Optional: Add an e-mail back to the person filling out the form (all four of these lines must be done for this
function to work):
<INPUT TYPE="hidden" NAME="email_fieldname" VALUE="name of the field that contains the e-mail
address">
You must have a field in your form where the customer fills in their e-mail address for this to work. You may want
to make this a required field.
<INPUT TYPE="hidden" NAME="message_from" VALUE="ABC Company">
<INPUT TYPE="hidden" NAME="message_subj" VALUE="Thank you message">
<INPUT TYPE="hidden" NAME="message_file" VALUE="/thankyou.txt">
The VALUE for message_file should be the full path to the file relative to the Web root.
- End the form:
</FORM>