More advanced HTML features: Mail Comments Form

We have created a short HTML file that can be used by anyone at Lehigh to allow those browsing their home page to send them mail. The HTML file can be copied to your account and used with only one simple modification. However, there are a couple of things that you should understand before attempting to use the document in your own Home Page. One way to get a copy of the HTML file shown below and use it is to:
  1. Fetch the document from the server.
  2. Save the document as mail-comments.html using the Save As feature in your browser
  3. Insert the document into a current HTML file, or specify an anchor that links to it.
Note: there are two optional features of the Mail comments form.
  1. You can request the responder's email address and phone number:

  2. The correct field names are 'address' and 'phone'.
  3. You can specify a URL to return to after submitting the form, with the line:

  4. <INPUT TYPE="hidden" NAME="URL" VALUE="url">
    where url is the URL you want to return to.

If you have comments on my Home Page, I would like to hear from
you. Type in your comments in the big box below and
click on the <i> Submit Comments</i> button at the bottom to
send your message.<p>


<Form METHOD="POST"
ACTION="http://www.lehigh.edu/cgi-bin/comment-mail.pl">

<input type="hidden" NAME="recipient" value="www@Lehigh.EDU"> <P>

Please enter your e-mail address: <input NAME="username"><P>

Please enter your name: <input NAME="realname"><P>
Your phone number (optional): <input NAME="phone"><P>
Your address (optional): <textarea NAME="address" ROWS="3" COLS="30"></textarea><P>

Please enter comments below: <P>
<TEXTAREA NAME="comments" ROWS=8 COLS=45></TEXTAREA> <P>

<Input TYPE="submit" VALUE="Submit Comments">
<Input TYPE="reset" VALUE="Erase Comments"><p>
</Form>