Drop Down Lists
What to use drop down lists for
Drop down lists are a good way to conserve space and make your form look more attractive. The user can select one option from many which are displayed when the drop down arrow is clicked. This means that a drop down list will work in the same way as radio buttons do, but for a large number of options they provide a more appealing layout.How to use drop down lists
<select name="name">
<option value="value"> text
</select>
<option value="value"> text
</select>
name - The name identifying this drop down list.
value - The data which will be sent by the form if this option is selected.
text - The text to display in the drop down list that corresponds to this option.
For example;
<form action="form-process.php" method="get">
How old are you:<br>
<select name="age">
<option value="teens"> Age 10 to 19
<option value="twenties"> Age 20 to 19
<option value="thirties"> Age 30 to 39
<option value="forties"> Age 40 to 49
<option value="fifties"> Age 50 to 59
<option value="sixties"> Age 60 to 69
<option value="seventies"> Age 70 to 79
<option value="eighties"> Age 80 to 89
<option value="nineties"> Age 90 to 99
</select>
<input type="submit" value="Submit">
</form>
How old are you:<br>
<select name="age">
<option value="teens"> Age 10 to 19
<option value="twenties"> Age 20 to 19
<option value="thirties"> Age 30 to 39
<option value="forties"> Age 40 to 49
<option value="fifties"> Age 50 to 59
<option value="sixties"> Age 60 to 69
<option value="seventies"> Age 70 to 79
<option value="eighties"> Age 80 to 89
<option value="nineties"> Age 90 to 99
</select>
<input type="submit" value="Submit">
</form>


