I'm creating a form that allows you to go back and edit the values in the form. How do I make the select box automatically select the value that's already in the database?
For example:
<Select name="mondayMorningIn1">
<option value="00.00">12:00 am</option>
<option value="00.15">12:15 am</option>
</Select>
Let's say the database already has the value 00.15 in the database. How do I get the field to automatically select 00.15 when the form loads?
I know how to do this with text fields but not select boxes.
Please HELP!!!!
For example:
<Select name="mondayMorningIn1">
<option value="00.00">12:00 am</option>
<option value="00.15">12:15 am</option>
</Select>
Let's say the database already has the value 00.15 in the database. How do I get the field to automatically select 00.15 when the form loads?
I know how to do this with text fields but not select boxes.
Please HELP!!!!