The FORM Tag

The <FORM> tag resides within the body of the HTML document. To create a form, first start with the <FORM> tag with the following basic syntax:
<FORM METHOD="GET or POST" ACTION="URL">
Where URL is the URL of the file to access which will perform the action when the form is submitted. This URL is often a perl script, or a computer program that acts on the information found on the form.

The METHOD attribute is optional. The choices for METHOD are GET and POST. GET is the default. Use GET when you are only getting information from the server. Use POST when you want to send or post information to the server, such as updating a database entry. Also use POST when you are getting and posting information. POST is preferred because the amount of information you can send is unlimited.

End the form with the </FORM> tag, because otherwise you will get errors in your HTML code. Note that you can have more than one form in a document but you cannot have nested forms.

Between the <FORM> tag and the </FORM> tag, you can have different ypes of input. These input tags provide the interface for the user to input data.

How do I input text into a form?


[INDEX] [PREVIOUS] [NEXT PAGE] [CHAPTER 9]

Valid HTML 3.2!