A useful and interesting feature of HTML documents is their ability to
have embedded forms which the caller can complete and where the captured
data is sent somewhere for processing.
The Form Opening Tag
NOTES:
This can be used to capture a single item of information, for example, a
name, a 'phone number or a credit card number.
Use the keyword PASSWORD if you do not wish the text to be seen. In
this case, an asterisk will be echoed for each character typed.
Transmission of information through forms is not guaranteed to be
secure unless special versions of both browser and server are being used.
Capturing free-format text
Enter your comments:
is rendered as ...
NOTES:
This can be used to capture a larger amount of text, for example, a
comment or a question.
If you wish to pre-paste the box with some text, then should appear
between the TEXTAREA opening and closing tags.
Using Check Boxes
Do you need a receipt?
is rendered as ...
NOTES:
If you want the box to be checked by default, include the keyword
CHECKED in the INPUT statement
Using Radio Buttons
Indicate which of the following report options you require?
Low
Middle
High
is rendered as ...
NOTES:
If you want one of the buttons to be checked by default, include
the keyword CHECKED in the appropriate INPUT statement.
In a group of radio buttons, each INPUT statement must
have the same NAME. In this case, roptions.
Using Selections
Please indicate which prospectus you require?
is rendered as ...
NOTES:
In this example, SIZE is set exactly equal to the number of OPTIONS.
If no VALUE= is specified with the
OPTION statement, the displayed text is the value
assigned to the NAME when that option is selected.
If more than one option can be selected, use the MULTIPLE keyword
in the SELECT statement.
VARIATIONS:
Setting SIZE=3, i.e. less than the number of OPTIONS, we get: