Posted by = poster = on 10/16/06 07:10
Hi all ,
I have a script which let the user choose between four days :
Day: <select name=\"day\" value=\"$day\">
<option value=\"01\">1</option>
<option value=\"02\">2</option>
<option value=\"03\">3</option>
<option value=\"04\">4</option>
</select>
The selected number is saved in mysql database.
I have also a script which alows the user to edit their choises.
The problem is that I don't know how to set the value from the database into
the select thingy.
I know how to handel this with an:
<input type="text" name="title" value=$somvar >
But how can I do this with the select thingy ?
thanks !
[Back to original message]
|