B
Bob Sanderson
I am using a PHP/HTML form to access a MySql database. Some of the entries
use radio buttons.
<td><input name="Flag1" type="radio" value="1" /></td>
<td><input name="Flag1" type="radio" value="2" /></td>
<td><input name="Flag1" type="radio" value="3" /></td>
<td><input name="Flag1" type="radio" value="4" /></td>
This part works fine. I have created a form to permit the operator to edit
a record. This form is identical to the input form and displays the data
for the record selected. What I can't figure out how to do is to display
the data in the radio button fields. The PHP script correctly returns the
data but I don't know how to check the correct button. It seems like this
would be a pretty common thing, but I haven't been able to find it.
Any help will be greatly appreciated.
use radio buttons.
<td><input name="Flag1" type="radio" value="1" /></td>
<td><input name="Flag1" type="radio" value="2" /></td>
<td><input name="Flag1" type="radio" value="3" /></td>
<td><input name="Flag1" type="radio" value="4" /></td>
This part works fine. I have created a form to permit the operator to edit
a record. This form is identical to the input form and displays the data
for the record selected. What I can't figure out how to do is to display
the data in the radio button fields. The PHP script correctly returns the
data but I don't know how to check the correct button. It seems like this
would be a pretty common thing, but I haven't been able to find it.
Any help will be greatly appreciated.