Having trouble printing all the values from an array - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Having trouble printing all the values from an array (/showthread.php?tid=832) |
Having trouble printing all the values from an array - alexandervj - 01-21-2015 I have a form with a checkbox so the user can select multiple items from the checkbox, the submission and everything works ok, just need help getting the values from the checkbox. I realize this isnt exactly CodeIgniter help but any help you can give is much appreciated... Here is my form code for the checkbox. I'm just trying to get the $productSheets variable to print all the values in the email at the bottom... Code: <tr> and here is the code from my process.php file. The other variables display fine. Code: <?php RE: Having trouble printing all the values from an array - mwhitney - 01-21-2015 Since $productSheets should be an array, you will have to loop through it to extract the values. print_r($productSheets) should work to verify that the data has been passed to the variable properly, but it's unlikely that it will give you the output you want for display to the end-user. RE: Having trouble printing all the values from an array - CroNiX - 01-21-2015 Code: $checkboxes = $this->input->post('productSheets'); RE: Having trouble printing all the values from an array - alexandervj - 01-28-2015 Thanks |