FORMS

YOUR GRADED ASSIGNMENT
Add a form to your project that collects
useful information from your visitors!

Modify, expand and make the example form "yours"

by adding more options like the following :

  • Checkboxes of favorite bands, foods
  • "State" select options
  • Radio button group of favorite color

    SAVE & have your last 3 lessons graded!

Forms are a great way to solicit feedback from your site visitors
in the form of profiles, product orders, surveys, etc.
The form below uses the computer's own email program for
sending and works best on home personal computers.
Public multi-user computers often don't have the mail program setup correctly.

Contact Me

Name:
E-mail address:
How did you find this site?

Send me more info
Add me to your mailing list

Age:

Sex:
male
female

Comments:

THE CODE!

<form action="mailto:youremail@something.com" method="POST">
<font size="4">Contact Me </font><br>
<br>
Name:
<input type="text" size="30" name="name">
<br>
E-mail address:
<input type="text" size="30" name="email">
<br>
How did you find this site?
<input type="text" size="30" name="How you found us">
<br>
<br>
<input type="checkbox" name="Send Info" value="ON">
Send me more info<br>
<input type="checkbox" name="Add to mailing list" value="ON">
Add me to your mailing list<br>
<br>
Age:
<select name="age" size="1">
<option value="youngin">under 18</option>
<option value="prime">18-35</option>
<option value="arthritic">over 35</option>
</select>

<br>
<br>
Sex:<br>
<input type="radio" checked name="sex" value="male">
male<br>
<input type="radio" name="sex" value="female">
female<br>
<br>
Comments:<br>
<textarea name="Comments" rows="3" cols="40"></textarea>

<br>
<input type="submit" name="SEND" >
</form>

Forms that are coded to use a CGI SCRIPT (a program that runs on a host server)
are easiest for the site visitor to use but more difficult for you to set up.
Example CGI Form Code:
<form action="http://lchs.net/cgi-shl/formmail.pl" method="POST">
<input type="hidden" name="recipient" value="your@email.com">


The cgi script takes the information entered on the form and then
sends it to the email address of your choosing, bypassing the possible
problems a public use computer email program might have.

Many websites will let you create cgi-based forms online and host them for FREE.
Do a web search for FREE CGI hosting options!
(Forms, guestbooks, quiz, voting, etc)


NOW, the rest of the term is yours to
finish your project and all assignments
and have them graded! Good Luck!