Select drop-down box
From the menu go to: Insert > Forms > Drop-down

This tag allows the user to choose from a fixed set of values; one or several at once. The <select> tag has Options in between the initiating <select> tag and the terminating tag.

The attributes to Select are as follow:
Name is the symbolic name for this Select element. This must be present, as it is used when putting together the query string for the submitted form.
Size: if size is 1 or if the size attribute is missing, by default the Select will be represented as an option menu. If size is 2 or more, the Select will be represented as a scrolled list; the value of size then determines how many items will be visible.
Multiple, if present (no value), specifies that the Select should allow multiple selections. The presence of Multiple forces the Select to be represented as a scrolled list, regardless of the value of Size.

The attributes to Option are as follow:
Selected: specifies that this option is selected by default. If the Select allows multiple selections (via the Multiple attribute), multiple options can be specified as selected.

Example:

<form method="post" action="yourscript.php">
<select name="dogs">
<option value="poodle">poodle
<option value="shepherd">shepherd
<option value="labrador" selected>labrador
<option value="terrier">terrier
</select>
</form>

Result:



See Also: Form Samples