Link to USGS home page
Internal USGS Access Only

Assignment Set 7

Writing Forms

Setting Up Netscape 7 to Send Mail

  1. From menu option Window, select Mail & Newsgroups
  2. From the menu option Edit, select Mail & Newsgroups Account Settings
  3. From the list on the right, select "Outgoing Server (SMTP)"
  4. Set Server Name to smtp.water.usgs.gov
  5. Click on "Add Account"
    1. Select "E-mail account", and click on Next
    2. Type in your name and Lotus e-mail address, then click on Next
    3. 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
    4. Set the User Name to your AFS user account name, then click on Next
    5. Accept the default account name, click on Next
    6. Click on Finish
  6. 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):

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

  1. 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


[up]
"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