![]() |
why I am getting string instead of array from my checkboxes?? - 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: why I am getting string instead of array from my checkboxes?? (/showthread.php?tid=50036) |
why I am getting string instead of array from my checkboxes?? - El Forum - 03-12-2012 [eluser]zoreli[/eluser] Hi I have checkboxes in my form, which returns me string instead of array, as it should. Can anyone tell me what is wrong with my code? Here is the code from the view: Code: <?php echo form_open('backOfficeUsers/deleteMoreUsers');?> And when I make var dump from my controller, I am getting string string(3) "200" (while 200 is the row id. Here is the code of the controller: Code: foreach ($this->input->post('userdelete') as $row){ This print string(3) and the id of the first row. Regards, Zoreli why I am getting string instead of array from my checkboxes?? - El Forum - 03-12-2012 [eluser]Noobigniter[/eluser] Code: foreach ($this->input->post('userdelete') as $row){ |