Home Segments Top Top Previous Next

1045: Mainline

Information is supplied to the servlet specified in the <form> tag by the pull-down menu and radio buttons. For example, if you select an item from a pull-down menu—bracketed by <select> and </select> tags, and punctuated by <option> tags—then the name identified in the <select> tag and a string prefixed by an <option> tag are supplied to the target servlet.

Thus, if you select Casablanca, then the titleCasablanca name–value combination is supplied to the target servlet.

<form ...> 
... 
<select name=title ...> 
... 
<option>Casablanca 
... 
</select> 
</form>