help with drop down list selected value
Posted: Sun Feb 15, 2009 7:54 pm
Hi I have a drop down list which the value is stored in database when I submit the form
For example the user greedyisgood selects Meeting and store it in the database. My problem is I have an edit page and what I want is the value of dropdown in the database will now be selected in the edit page like this
Any idea on how it works? Thanks in advance
Code: Select all
]<select name="type" id="Type">
<option selected="selected" value="">[Select one]</option>
<option value="Meeting">Meeting</option>
<option value="Conference">Conference</option>
<option value="Workshop">Workshop</option>
</select>Code: Select all
]<select name="type" id="Type">
<option value="">[Select one]</option>
<option selected="selected" value="Meeting">Meeting</option>
<option value="Conference">Conference</option>
<option value="Workshop">Workshop</option>
</select>