Welcome Guest, Not a member yet? Register   Sign In
how can I display all POST values like print_r($_POST);
#1

[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
#2

[eluser]stommert[/eluser]
Hi,

you can catch the post variables by just reading $_POST;

Code:
var_dump($_POST);
exit();


you will see that it is already an array.
you can put it in another variable by
Code:
$data = $_POST;
if you enable your profiler. You will be able to see the post variables without having to print them
put this in your constructor
Code:
$this->output->enable_profiler(TRUE);

I hope this helps
#3

[eluser]core-coder[/eluser]
Thanks




Theme © iAndrew 2016 - Forum software by © MyBB