First page Back Continue Last page Graphics
<FORM> tag
Encloses all of the form elements.
- contains METHOD and ACTION attributes
First, the form needs to know how to send the information to the server. Two methods are available, GET and POST.
- METHOD="GET"
- Most HTML documents are retrieved by requesting a single URL from the server. GET tacks on the information from the form to the end of the URL. Spaces are translated into + sign; if there’s more than one variable, they’re separated by an & sign:
http://search.altavista.com/cgi-bin/query?q=Stanford+University
- METHOD="POST"
With the POST method, the information from the form is sent to the CGI script separately from the URL This is the preferred method. It is the method most commonly used in creating forms, as it is less likely to cause problems if there are many variables and data.