![]() |
Checkbox re-population problems - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Checkbox re-population problems (/showthread.php?tid=47733) |
Checkbox re-population problems - El Forum - 12-20-2011 [eluser]Wayne Smallman[/eluser] Hi guys! Having tried everything I can find an example of, and failed, I need someone to explain how I'm supposed to re-populate a checkbox. I've tried the examples in the User Guide, I've also tried numerous examples in the Forums, and nothing works. The checkbox is not mandatory and is not checked by default. I've reverted all of my code back to what I had originally, which is... In the controller: Code: $arrayAttr['form']['stay_dinner'] = array( Code: <dd><?php echo form_checkbox($form['stay_dinner']);?></dd> |