[eluser]Wonder Woman[/eluser]
Hello,
I have my form validation set up so that when the form is submitted, the users answer is highlighted, however how do I amend this code to take the stored answer from the database so that the correct answer is highlighted when the page is refreshed?
Code:
echo form_radio('publish', 1, (set_value($publish) == 1)).' Yes';
echo form_radio('publish', 0, (set_value($publish) == 0)).' No';
Thanks!