Help Desk
CGI: Form Mail Script
 
Web www.seanet.com
  1. Start the form with: <FORM METHOD="post" ACTION="http://www.yourdomain.com/cgi/form">
    If you want a custom acknowledgement page then append the path to the acknowledgement page at the end of the above line.
    Like this:

    <FORM METHOD="post" ACTION="http://www.yourdomain.com/cgi/form/filename.html">

  2. Create the form fields. See examples below.

  3. Add Submit and Reset buttons:

    <INPUT TYPE="submit" VALUE=" Submit ">
    <INPUT TYPE="reset" VALUE=" Reset Form ">

  4. Add the e-mail address you want to receive the form information:

    <INPUT TYPE="hidden" NAME="mailto" VALUE="username@yourdomain.com">

  5. Add a subject line for the e-mail:

    <INPUT TYPE="hidden" NAME="subject" VALUE="the subject of the e-mail">

  6. End the form: </FORM>

Commonly Used Form Input Fields

  • Checkboxes.
    I like zucchini.
    I like zebras.
    <INPUT TYPE="checkbox" VALUE=zucchini NAME="plant" CHECKED> I like zucchini.<BR>
    <INPUT TYPE="checkbox" VALUE=zebra NAME="animal"> I like zebras.<BR>
    

    VALUE is what is returned if the box is checked.
    NAME is how this checkbox will be referenced.
    CHECKED is included if the box should start off checked.

  • Radio Buttons.
    Jazz
    New Age
    Rock
    <INPUT TYPE="radio" VALUE="Jazz" NAME="Radio1">  Jazz<BR>
    <INPUT TYPE="radio" VALUE="New Age" NAME="Radio1">  New Age<BR>
    <INPUT TYPE="radio" VALUE="Rock" NAME="Radio1" CHECKED>  Rock<BR>

    VALUE is what is returned if the item is selected.
    CHECKED (optional) is the item that starts off selected.
    NAME is how this series of radio buttons will be referenced.

  • Text Fields.
    <INPUT TYPE="text" VALUE="Kilroy was here." NAME="text1" SIZE="12" MAXLENGTH="25" >

    VALUE (optional) is a default string to be displayed in the text field before the user types anything.
    NAME is how this text field will be referenced.
    SIZE (optional) is the amount of display space for the text field.
    MAXLENGTH (optional) is the length of one line in the text field. If MAXLENGTH is larger than SIZE then the text field should scroll as necessary.

  • Text Area Fields
    <TEXTAREA NAME="text2"  ROWS=10 COLS=60>Type something here.</TEXTAREA>

    NAME is how this text area will be referenced.
    ROWS and COLS define the size of the text area.

  • Password Fields.
    <INPUT TYPE="password" NAME="thepassword">

    NAME is how this field is referenced.
    When the user types in this field, no characters are displayed.


Seanet Internet Services
PO Box 2228
Seattle, WA 98111
Seanet Support Hours
8 AM - 8 PM Monday - Friday
10 AM - 5 PM Weekends - Holidays
206.343.7828
1.800.9.SEANET
(1.800.973.2638)