Welcome Guest, Not a member yet? Register   Sign In
how to get all post data
#4

[eluser]WanWizard[/eluser]
You can't call the post() method that way, you can't iterate over it using a foreach either.

post() requires an index name, if not given (of if it doesn't exist), it returns FALSE, which is probably what your var_dump() output is showing.

What you can do is:
Code:
$post = array();
foreach ( $_POST as $key => $value )
{
    $post[$key] = $this->input->post($key);
}
var_dump($post);

Would be a handy addition to the Input library...


Messages In This Thread
how to get all post data - by El Forum - 08-05-2010, 09:08 AM
how to get all post data - by El Forum - 08-05-2010, 11:34 AM
how to get all post data - by El Forum - 08-06-2010, 01:17 AM
how to get all post data - by El Forum - 08-06-2010, 01:59 AM
how to get all post data - by El Forum - 08-06-2010, 02:14 AM
how to get all post data - by El Forum - 01-29-2012, 05:13 AM
how to get all post data - by El Forum - 01-29-2012, 08:06 AM
how to get all post data - by El Forum - 01-29-2012, 10:42 AM
how to get all post data - by El Forum - 09-15-2012, 08:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB