Select a Item In Drop-Down List
Hi All,
I created a form(userInput.asp) where users can select from a drop-down menu. The values in the menu are:
<select name="sport">
<option value="1">Baseball</option>
<option value="2">Basketball</option>
<option value="3">Tennis</option>
</select>
Let say a user selected basketball, and submitted the form. The data go into a database.
Here is what I want to do. Search(EditUserInput.asp) for this user, and be able to see his selection in a dropdown menu. Here is the key, I want his selection as the "selected default."
In other words, after I searched for this person and view his record, there is a dropdown menu with three selections(Baseball, Basketball, Tennis), but with "Basketball" hightlighted. Make sense?
Thank you for your help.
Leon
|