Processing Forms

Mailing Form Data:

The following action: http://www.auburn.edu/cgi-bin/mailto.pl will reformat the data submitted by the respondent to a form and send it to an email address which you specify.

Fields used in the mailto program.

The form must contain the following fields, usually hidden: The following required field is usually not hidden. Optional fields, usually hidden include

The values for to, from, sub, and cc appear as usual in the e-mail message. The value for nexturl does not appear at all in the e-mail. The value for body appears in the first line. The values for the other fields in the form appear ion the e-mail as

fieldname --> value
.

Example of the HTML for a form and
the corresponding e-mail output

FORM
<FORM ACTION="http://www.auburn.edu/cgi-bin/mailto.pl" METHOD="POST">

<INPUT TYPE="hidden" NAME="body" VALUE="This is for demonstration purposes">
<INPUT TYPE="hidden" NAME="to" VALUE="USERID@mail.auburn.edu">
<INPUT TYPE="hidden" NAME="nexturl" VALUE="http://www.auburn.edu">
<INPUT TYPE="hidden" NAME="subj" VALUE="Test form">

Your name:
<INPUT TYPE="text" NAME="name" SIZE=20 >

Your e-mail address:
<INPUT TYPE="text" NAME="from" SIZE=20 >

Choose one to four colors:
<INPUT TYPE="checkbox" NAME="red" selected>RED
<INPUT TYPE="checkbox" NAME="grn" selected>GREEN
<INPUT TYPE="checkbox" NAME="blu" >BLUE
<INPUT TYPE="checkbox" NAME="pur" >PURPLE

Vote for exactly one:
<INPUT TYPE="radio" NAME="term" value="Q" checked> Quarters
<INPUT TYPE="radio" NAME="term" value="S" > Semesters

Add your comments:
<TEXTAREA NAME="comments" ROWS=3 COLS=50>No Comment</TEXTAREA>

<INPUT TYPE="submit" >
<INPUT TYPE="reset" >
</FORM>

E-MAIL
The e-mail will be The e-mail message will look something like this: (Here we assume that except for the name and e-mail address the respondent makes no changes to the form.)

This is for demonstration purposes

name --> Whatever name the respondent enters
red --> on
grn --> on
term --> Q
comments --> No Comments

After the form is successfully submitted, the next page to appear on the respondents screen will be the Auburn University Home Page (http://www.auburn.edu).