I have a drop down/list and am using a php and a mysql table to store my values. I am displaying an update page that already has the user's number stored in it. I want to default their current number value in the dropdown/list. How do I accomplish this? My code is below. What am I missing ?
<select name="number" class="longfiel d-select" option value="<?echo "$number?>" >
<option value="">Select Number</option>
<option value="One">One </option>
<option value="Two">Two </option>
<option value="Three">T hree</option>
</select>
<select name="number" class="longfiel d-select" option value="<?echo "$number?>" >
<option value="">Select Number</option>
<option value="One">One </option>
<option value="Two">Two </option>
<option value="Three">T hree</option>
</select>
Comment