Check for checked checkboxes |
[eluser]murphy2006[/eluser]
Hello Guys! I am desperately trying to loop though a set of checkboxes to see which ones that are check (information from the database). It works fine but for each checked item I get one unchecked of the same kind. For example if I check the box Singel, I get two checkboxes called Singel (one check and one unchecked) when reloading the page. Why is that? Thankful for all help! Code: <?php
[eluser]Nexus Rex[/eluser]
There is a much easier way to preset values from a database... I/we have solved this problem very easily with a custom helper and new functions called: preset_select() preset_checkbox() preset_radio() Get all the code and an example in the post here: http://ellislab.com/forums/viewthread/113120/#691338 |
Welcome Guest, Not a member yet? Register Sign In |