|
Forms are created using HTML Tags. Each form
must have a beginning and ending tag. Please note: Forms may
not be nested, however each HTML document may have multiple
forms in it. The following is an example of a Beginning and
ending Form:
|
<form
method=post action="http://www.2kweb.net/cgi-bin/formmail.cgi">
</form> |
The METHOD Parameter determines how the data will be sent
to the cgi program that will process the form. The possible
methods are GET, or POST. For several reasons, the POST method
is more efficient and has less problems than the GET method.
For complete information on the differences, visit your local
book store for the book titled "Teach Yourself CGI Programming
with PERL in a week" written by Eric Herrmann.
The ACTION parameter is used to give the URL
of the CGI program that will process the form. All forms must
be processed by a CGI program. In the example given, the Enetrics Communications CGI Program named formmail.cgi will be
used to process all the entries that are typed into the form
by the Web Surfer. This program can be used to forward the
form entries to your e-mail address.
Every form must be ended. the </form>
tag tells the browser where the form ends.
Beginning/Ending
Form Tags
Text Entry Fields
Text Area Fields
Checkboxes
Radio Buttons
Combo Boxes
Submit and Reset Buttons
E-Mail the Contents
of your Form
Example Forms
|