CodeIgniter Forums
Repopulate radio buttons - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter Archived (from EllisLab) (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Repopulate radio buttons (/thread-44931.html)



Repopulate radio buttons - El Forum - 08-31-2011

[eluser]caperquy[/eluser]
Before sending this question I have been through the CI user guide but I have not found any answer.
I have a form with two radio buttons defined as follows :
Code:
<ul>
  <li>
    &lt;input type="radio" name="association" value="ou" checked="checked" /&gt;
  </li>
  <li>
    &lt;input type="radio" name="association" value="et" /&gt;
  </li>
</ul>
Only one of them is checked at a time. How can I repopulate them knowing that I have no validation rule associated ?
Many thanks for the answer.
Regards