Tags: < form >


   Forms are a good way to gather information from your visitors or allow them to place orders, comments, etc.
   There are two ways to handle forms on Web Sites. One requires the use of a CGI bin and the other is a simple `send info by email` script. Which works with the users computer default mail program. The letter will be a little confusing to read but contains all the form inputs. A CAUTION though, some new Browsers will not support this function any more.

   The following is an email type form. I first show the code for the form item with the resulting form element below it.



< form method="post" title="Survey" action="mailto:username@youraddress.net" >
Must contain this line. Not seen on the page.


< input type="text" name="email_address" size="40" maxlength="60" value="Email address." >



< FONT COLOR="MAROON" SIZE="+1" >< U >Select a channel!< /U >< /FONT >
< select name="selected" >
< option value="1" selected >none
< option value="2" >Movies
< option value="3" >News
< /select >

Select a channel!


< select name="selected" multiple size="3">
< option value="1" selected >none
< option value="2" >Movies
< option value="3" >News
< /select >


< FONT SIZE="-1" COLOR="NAVY" >< U >Do you agree.< /U >< /FONT >
NO< input type="radio" name="vote" value="no." checked>
YES< input type="radio" name="vote" value="yes.">

Do you agree.
NO     YES


< FONT SIZE="-1" COLOR="NAVY" >< U >Is the Earth round.< /U >< /FONT >
NO< input type="checkbox" name="iqcheck" value="no">
YES< input type="checkbox" name="iqcheck" value="yes">
YES< input type="checkbox" name="iqcheck" value="beats_me" checked>

Is the Earth round.
     NO
     YES
     I DUNNO


< textarea name="Text area" rows="3" cols="40" >Please define your issues.< /textarea>


< input type="button" value="Never ever Click this button" onclick="javascript:parent.close()" >


< input type="reset" value="Reset this form." >


< input type="submit" name="Submit" value="Submit Form" >


< input type="password" name="Idenifacation Key" size="20" maxlength="20" >


< input type="file" name="special_file" size="40" maxlength="50">


< input type="hidden" name="demosurvey" value="demo_form" >
This line is not need but will identify the form for you. Not seen on the page.


< /form >
Must contain this closing tag. Not seen on the page.




CGI Forms

    The following form uses CGI (Common Gateway Interface), a script on the server that will process and forward the information in the form. You will have to check with your server for information on using the CGI bin.

    The big difference between the E-mail form above and this CGI form is the Form Action syntax.

< FORM ACTION = "/cgi-sys/formmail.pl" METHOD = "POST" >



Click HERE to rate this site with a CGI form.


This is Page 14 
of learning html
Next we will look at Tables
Click here TABLES