![]() |
Repopulating Checkboxes/Lists With Dynamic Content - 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: Repopulating Checkboxes/Lists With Dynamic Content (/showthread.php?tid=3695) |
Repopulating Checkboxes/Lists With Dynamic Content - El Forum - 10-17-2007 [eluser]RobbieL[/eluser] I've got a couple of checkboxes in a form. The values of them are dynamically generated with data from a database. What I'm looking to do is for when the form is being repopulated because of a validation error, for these checkboxes to return to the state the were submitted in. I've managed to get this working using CI's set_checkbox with checkboxes that have static values. But having real bother with ones with dynamic values. Here's what I have so far: Code: <select name="day"> I know the problem is lying in the second parameter of the set_select function. I've tried the usual formatting options, but just can't get it to work. Anyone got any experience on the matter and able to shed a little on the problem? Cheers. |