HTML Forms: Multiple Selection Window
This window allows multiple items to be selected.
The only difference between this input element and the previous
SELECT element is the introduction of the SIZE
option. This specifies how many lines of the list to display
in a scrollbox.
<FORM action="test.cgi">
<SELECT NAME="group" SIZE=3 MULTIPLE>
<OPTION> Title
<OPTION> Description
<OPTION> URL
<OPTION> Category
</SELECT>
</FORM>
-
MULTIPLE
- Specifies that multiple options can be selected, as opposed to the
previous
SELECT example, where only one option could be
selected from the menu.
-
SIZE
- The number of lines to display in the scrollbox.
-
OPTION
- Specifies a list option.
-
VALUE
- Specifies the value of the option to be sent to the server.
- If not defined, the name of the option is sent as the value.
-
SELECTED
- This tag defaults an
OPTION to be selected.
- On some browsers, it may be necessary to hold down the
CONTROL or SHIFT key to select multiple items.
- This input element is good for lists with many options, because you
can control how many to display at a time.
- If multiple items are selected, they will each be passed to the
server with the same name.
The decoding script has to be smart enough
to recognize multiple values associated with the same name.
|