| Tag |
Attributes |
Values |
Value Meaning |
| <INPUT>, no end tag |
Allows various types of user input |
| |
NAME: Tells the CGI what sort of data it is |
|
|
| |
VALUE: The data to be sent |
Depends on the form |
|
| |
TYPE: What type of input control to create |
Checkbox |
Is either checked or unchecked. Sends the Name/Value pair only if it
is checked. Can be set to checked by default by adding in the CHECKED attribute
with no value. |
| |
|
Hidden |
Used for information that the CGI needs, but shouldn't be changed by
users. No visible display. |
| |
|
Image |
An image, specified by the SRC attribute. Is similar to the Submit
value, but displays an image instead of a button and sends the coordinates where the image
was clicked in name.x and name.y. |
| |
|
Password |
A text field in which the input is shown as asterisks. SIZE will
specify how many characters wide the textbox is. |
| |
|
Radio |
When multiple radio buttons are placed on a page with the same NAME
attribute, only one can be selected, and that one's VALUE is sent. Can be specified
as selected by default with the CHECKED attribute with no value. |
| |
|
Reset |
A button to reset the form to its default values. |
| |
|
Submit |
A button which has the VALUE as the text label, and submits the data in
the form to the CGI. |
| |
|
Text |
A simple one-line textbox. SIZE will specify how many characters
wide the textbox is. |
| <SELECT> ... </SELECT> |
Contains OPTIONs |
| |
NAME: Tells the CGI what sort of data it is |
Depends on the CGI |
|
| |
MULTIPLE: Makes it so that more than one value can be selected from the
list |
No value |
|
| |
SIZE: How many options to display at a time, only if MULTIPLE is used |
A number greater than 1 |
|
| <OPTION> ... </OPTION> |
Only used inside a SELECT tag. The included text should
be a description of the value. |
| |
VALUE: The data to be sent |
Depends on the form |
|
| |
SELECTED: makes an option selected by default |
No value |
|
| <TEXTAREA> ... </TEXTAREA> |
Multi-line text box. Contains the default text. |
| |
NAME: Tells the CGI what sort of data it is |
Depends on the CGI |
|
| |
COLS: How wide the textarea should be |
Number |
|
| |
ROWS: How tall the textarea should be |
Number |
|