Hi all,
Not to sure if this is the right area to place this post.
I have a SELECT field on a page which has 4 options from a static list.
When an option is selected and the update button clicked the selection is written to the SQL table.
My problem is that when the same form is opened again, maybe to up date another field, the select field displays the first option in the list. If the up date button is clicked the data is written to the SQL table.
How can I make the SELECT field display the data in the SQL table rather then the first option in the static list.
The SELECT code I am using is simple:
+++++++++++++++++++++++++++++++++++++
<select class="bodytext" name="question2" id="question2">
<option value="Father's first name">Father's first name</option>
<option value="Mother's maiden name">Mother's maiden name</option>
<option value="Town/City of birth">Town/City of birth</option>
<option value="Name of your first school">Name of your first school</option>
</select>
+++++++++++++++++++++++++++++++++++++
Can anyone please advise me.