FORMS 101
![]()
You will be changing your Parks Hotel Reservations form to make use of the CGI mailer program on the web server. The mailer program exercise will give you an example of how to use a server-side application.
NOTE:
If you wish to use an email address other than your university account please
email me from that account so we can allow your email to access to the CGI Mailer
application.
Example form showing how the items must be named
to work with Mailer:
Name: (realname)
Email: (email)
Some question:
Another question:
Gender of person: MALE FEMALE
(Both buttons must have the same name)Comments:
Two Buttons:
And you will need the following hidden fields:
field_order value="realname,email,Enjoyed,GoodColor,sexbutton,comments"
This is the order the information appears in the email body
redirect value="http://chinook.kpc.alaska.edu/~inmej/thanks.htm"
This takes the user to a thank you page when submit is pressed
subject value="Email Survey"
This is the subject line of every email sent from this form
recipient value="inmej@uaa.alaska.edu"
This line allows my email account to use the mailer cgi applicationThese fields are what make the form work and must be entered exactly as discussed in class. See the example form to understand where these field names come from.
Form Action: http://chinook.kpc.alaska.edu/cgi-bin/FormMail.pl
HINT: build your form in a table!
When the submit button is pressed the page should thank the person and email YOU a copy of what was entered in the form.
When I check your work I'll use the form to email you and let you know if you passed the class using the comments section.
Good Luck!
![]()
![]()
Updated on Tuesday, October 19, 2004