Developing Webs Tutorial Guidance For Building and Maintaining A Web Site and More

HTML Tutorials and Generators


HTML Tutorials
Cascading Style Sheets Tutorials
Flash Tutorials
Paint Shop Tutorials
Animation Tutorials
Photo Shop Tutorials
Front Page Tutorials
Dream Weaver Tutorials
Publishing Tutorials

E-Mail Home
 
 
 
 
 

 

<FORM> ... </FORM> FORM

Description:

The <FORM> tag creates a fill out form. Any HTML coding can be contained within the form. The browser permits the user to enter information in the fields of the form and sends this information to a cgi-bin script on a server identified as a URL by the ACTION attribute.

Attributes:

action - tells your browser where to send the information; this is a CGI program of some kind.

method - there are two method options: 'GET' or 'POST'. The difference is complicated, but in simple terms; 'GET' encodes all the information into the URL that is sent and 'POST' sends the data separately from the actual call to the script.

Example code:

<FORM ACTION="action URL" METHOD=GET/POST>
What is your name?
<BR>
<INPUT NAME="name" VALUE="enter name here" TYPE="text" SIZE=30 MAXLENGTH=3>
<P>
What is your age?
<BR>
<INPUT NAME="Age" VALUE="Young" TYPE="radio" SELECTED>
Young
<BR>
<INPUT NAME="Age" VALUE="Old" TYPE="radio">
Old
<P>
<INPUT VALUE="Submit Your Entry" TYPE="submit">
<INPUT VALUE="Clear This Form" TYPE="reset">
</FORM>

Result:

What is your name?

What is your age?:
Young
Old

 

 

Developing Webs Group © Copyright 2001-2002 All Rights Reserved

Web Master