LESSON 4: FORM PROCESSING
Objectives
o form processing concepts
o mailto:
command
o CGI processing
o customize a CGI script
o form processing tips
Overview
In this lesson, we concentrate on the action attribute within the form
tag. Two common values for this attribute are:
- The mailto command
<FORM METHOD="post" ACTION="mailto:lhemenway@santarosa.edu"
enctype="text/plain">
- A CGI script
<FORM METHOD="post" ACTION=
"http://www.santarosa.edu/cgi-bin/misc/formmail.pl">
The mailto command is easy on the Web developer but confusing for the
visitor.
The CGI script is more difficult for the Web designer; however, it
provides functionality that makes it easier for the customer to fill
out the form. Both techniques will be demonstrated.
When using the CGI script you must remember these factors.
- Always place the form on the server "student", you cannot
test the form from your local machine or from another server.
- The value of the hidden tag which identifies the recipient must
follow this pattern username@student.santarosa.edu
- When checking your student email to verify that the form is working
visit this Web site
https://student.santarosa.edu/squirrelmail/src/login.php
|