how can I display all POST values like print_r($_POST); - 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: how can I display all POST values like print_r($_POST); (/showthread.php?tid=27737) |
how can I display all POST values like print_r($_POST); - El Forum - 02-19-2010 [eluser]core-coder[/eluser] Hi all, I want to store all the POST values in a php variable, when I try to catch the values using $var = $this->input->post(), it gives an empty variable. How can I collect all the POST values in a variable ? Thank you Guys how can I display all POST values like print_r($_POST); - El Forum - 02-19-2010 [eluser]stommert[/eluser] Hi, you can catch the post variables by just reading $_POST; Code: var_dump($_POST); you will see that it is already an array. you can put it in another variable by Code: $data = $_POST; put this in your constructor Code: $this->output->enable_profiler(TRUE); I hope this helps how can I display all POST values like print_r($_POST); - El Forum - 02-19-2010 [eluser]core-coder[/eluser] Thanks |