[eluser]Jakobud[/eluser]
I copy/pasted the code from the User Guide into my form:
Code:
<input type="radio" name="myradio" value="1" <?php echo set_radio('myradio', '1', TRUE); ?> />
<input type="radio" name="myradio" value="2" <?php echo set_radio('myradio', '2'); ?> />
First of all, when I load the page initially, neither radio button is checked. Isn't the 3rd argument of set_radio supposed to set the default value? Cause it doesn't seem to work.
Next, after submitting my form and seeing the validation fail, the page loads back up again, and again, neither radio button is checked, even if I check one of them before submitting.
What am I doing wrong here?