now i create an edit page, how do i display the selected value in the menu and other values in dropdown,
for example,
Menu is like
Select One
1
2
3
4
5
and i select 3, this 3 is stored in database, now on the edit page i want to show 3 as already selected,
something like that..
[quote]<select name="select_thing"> <option value="1">1</option> <option value="2">2</option> <option value="3" selected>3</option> <option value="4">4</option> <option value="5">5</option> </select>[/quote]I will be very thankful, if someone could help by explaining how do i make option 3 as selected.. eg. how i know option 3 is selected and stored in db.
Edited by moderator, 21 April 2012 - 11:20 AM.














