|
|
Internal USGS Access Only |
Assignment Set 7
Writing Forms
Setting Up Netscape 7 to Send Mail
- From menu option Window, select Mail &
Newsgroups
- From the menu option Edit, select Mail &
Newsgroups Account Settings
- From the list on the right, select "Outgoing Server
(SMTP)"
- Set Server Name to
smtp.water.usgs.gov
- Click on "Add Account"
- Select "E-mail account", and click on
Next
- Type in your name and Lotus e-mail address, then click on
Next
- Select POP and your Incoming Server
to smtp.water.usgs.gov (the incoming
server will not actually work but we need to fill in that
field), then click on Next
- Set the User Name to your AFS user account
name, then click on Next
- Accept the default account name, click on
Next
- Click on Finish
- Click on OK
Writing the Form
Construct a form in html which posts the results in mail. Use address
mailto:webclass@smtp.water.usgs.gov. Important: when
posting to an e-mail address you must set the FORM attribute
METHOD to "POST".
Your form should contain the following (use a different form element for each item):
- A level 2 heading announcing the purpose of the form: A
survey of animal attacks on field techs.
- First ask for the name of the injured person.
- Find out the type of biting animal (only one option
should be allowed); was it a dog, a cat, a bat, or a rat (or
other)?
- Ask a yes or no question as to whether any hospitalization was
involved. Use a different form element than what you have used
before.
- Ask what field equipment would prove useful in the future
to avoid animal bites, and allow them to select one or more
answers; a big stick, mace, small firearm, reinforced
pants.
- Give them enough space to describe the incident.
- A submit button
- Provide a contact with a mailto:at the bottom of the form
in case they have any questions about the form.
Testing the Form Functionality
Since you do not have separate e-mail accounts for this lab,
testing of e-mail will be done by sending to
webclass@smtp.water.usgs.gov. Any mail sent to this
address will be instantly made available on the web at:
http://smtp.water.usgs.gov/webclass/
Just refresh the page in your browser to see changes.
This account will be shared by the entire class!
Answers to Assignments
- An an example of perl CGI.pm coding, and
example of the form
a href="http://wwwqvarsa.er.usgs.gov/cgi-bin/bitten"-->in
use. Or view the html version
and look at the source from your browser.
assignment 7
|
"Mastering a Website" online course Created and maintained by
Lorna Schmid and David Boldt.
Last modified: Fri Aug 22 20:20:28 Mountain Daylight Time 2003
|