Friday, June 18, 2010

HTML Forms are the most popular way to make web pages interactive.

The forms are the most popular way to make Web pages interactive. Like paper forms, a form on a Web page allows the user to enter the requested information and sends it to the processor. (Fortunately forms on a Web page processed much faster.) 

indicates the beginning of a form. All other form tags go inside
. In its simplest use, can be used without any attributes: 

this code produces this

name: 

email: 
name:
email:
Most forms require either the ACTION or NAME attributes to do anything meaningful. (The
attribute is always required, but not necessarily used in every situation.) For example, to make this form work, we'll add the
attribute, which indicates the CGI program to send the form data to. We'll also use NAME in the tags, and add a Submit button: 

this code produces this
name: 

email: 

name:
email:
NAME is useful when you want to use scripting

No comments:

Post a Comment