Setting Up The Mail Form

Formmail.cgi is a simple form designed to send form information through your e-mail. Please follow the instructions on how to set up formmail and be sure to use lowercase letters when naming the fields.

Click Here to see an Example of the Form


1. When starting your form, insert this line first in your HTML code. This field is required.

<FORM ACTION="/cgi-bin/formmail.cgi" METHOD="POST">

2. Recipient (This field is required)
The next line tells the program where to send the filled out form. You should put your e-mail address in the value section. This field is required

<INPUT TYPE="hidden" NAME="recipient" VALUE="your e-mail address">

3. Sort
This field arranges the fields submitted in the order specified

<INPUT TYPE="hidden" NAME="sort" VALUE="field1, field2, field3, field4, etc."

4. Required
This field enables the user to select certian fields that need to be filled out before submitting. If any of these fields are not filled out, the user will receive an error message.

<INPUT TYPE="hidden" NAME="required" VALUE="field2, field4, etc.">

5. Subject
This field specifies the subject line of the form when it is read.

<INPUT TYPE="hidden" NAME="subject" VALUE="your subject">

6. Redirect
This field automatically takes the user to the specified URL after successfully sending the form.

<INPUT TYPE="hidden" NAME="redirect" VALUE="http://www.dycon.com/search.htm">

 

Here is an Example that would go into your HTML code


<FORM ACTION="/cgi-bin/formmail.cgi" METHOD="POST">

<INPUT TYPE="hidden" NAME="recipient" VALUE="you@dycon.com">

<INPUT TYPE="hidden" NAME="sort" VALUE="name,age,address,e-mail,comments">

<INPUT TYPE="hidden" NAME="required" value="name,age,address,e-mail">

<INPUT TYPE="hidden" NAME="subject" VALUE="E-Mail Form">

<INPUT TYPE="hidden" NAME="redirect" VALUE="http://www.dycon.com/search.htm">

--This part starts the visible form. There can be as many fields as you like, but make sure all of them have a different name--


Name:<INPUT TYPE="text" NAME="name" "SIZE=40 MAXLENGTH=60>

Age:<SELECT NAME="age">
<option> Please Select One
<option> 10-20
<option> 21-35
<option> 36-50
<option> 51+
</SELECT>

Address:<INPUT TYPE="text" NAME="address" "SIZE=40 MAXLENGTH=60>

E-mail:<INPUT TYPE="text" NAME="e-mail" "SIZE=40 MAXLENGTH=60>

Any additional comments or requests:
<TEXTAREA NAME="comments" ROWS=5 COLS=60>
</TEXTAREA>

<INPUT TYPE="SUBMIT" NAME="sendb" VALUE="Send">

<INPUT TYPE="RESET" NAME="resetb" VALUE="Reset">

</FORM>

 

(Back to Main Help Menu)

 

© 2002 Ulanji, Inc.
All Rights Reserved