YOUR GRADED ASSIGNMENT
|
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) |