[eluser]bobbob[/eluser]
I am sure this has an easy explanation but it is eluding me.
I have a couple of radio buttons with yes and no as the choice:
Code:
<tr>
<td>Insured</td><td>Yes<input type="radio" name="insured" value="Yes" <?php echo set_radio('insured','Yes'); ?>"> No<input type="radio" name="insured" value="No" <?php echo set_radio('insured','No'); ?>"></td>
</tr>
For signing up this works fine and the form validation works if they didn't choose one.
Now when the user needs to edit their info. Completely different page as the form is now presented populated with their info from the database. When I recreate the form how do I get
$row->insured into the radio button so the correct Yes or No is preselected?
Tx