Hypertext Links
Image Formats
Text Formatting
Forms
Tables
Stylesheets
Databases and ASP
   


Form Element

Forms may not be nested, however each HTML document may have multiple forms in it.

Action: defines the URL (http://www.koodesign.co.uk/cgi-bin/formmail.pl") that will receive the data when the form is submitted.
Method:defines the method used to send data to the server:
There are two methods for forms submissions: POST (Sends the data to the server in the body of message) and GET (The data is appended to the URL itself after a Question mark separator). You should use POST in most situations, as it is the more current and standard implementation.

Hidden: This field can not be seen by the user but the value of the field will be submitted with the form to the server (There is lots of information that you might want to send to the server but you don't want the user to see.)

Form objects:

Text field box Accepts any type of text and the entered text can be displayed as single line or mutiple lines.
Text area
Check box Gives user the choice of selecting as many options as they would like.
Radio box Gives user the choice of selecting one option only.
Drop down menu The menu Option displays the values in the drop down list and the user have the choice of using one item.
<select name="select">
<option>Ducth</option>
<option>UK</option>
<option>USA</option>
<option>Iranian</option>
</select>
List option

The list option allows user to select multiple items by holding the control key.

<select name="list" size="3" multiple>
<option>UK</option>
<option>USA</option>
<option>France</option>
<option>Germany</option>
</select>

Submit button The button can perform different tasks (submit or reset) different name can be given to the label.
Reset button Reset the user input.

[1]---[2]

Copyright © 2001 koodesign