How to insert the values from each checked checkboxes into the database |
[eluser]CroNiX[/eluser]
The answer really depends on how you're doing it, as there are many. What does your form look like where these checkboxes are?
[eluser]towki[/eluser]
Code: <?php echo form_open('crimeIndex/add') ?> This is only a part of my form , all name of the checkboxes are similar based on what @xeroblast said. I hope i did it right :lol: I can undestand a bit of @xeroblast code. The things that confuses me were the "dots" in some part of the code and also the delimiter thing.
[eluser]CroNiX[/eluser]
Code: //Will only show checked box values If you want to know what was checked AND unchecked, you could create an array of all possible values and check against that. Code: $offences = array( Code: //comma separated checked values |
Welcome Guest, Not a member yet? Register Sign In |