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

[eluser]kanjimaster[/eluser]
I use this extension of the Input class. The code is similar to WanWizard's. Just place the code in a file application/core/MY_Input.php.

Code:
<?php defined('BASEPATH') OR exit('No direct script access allowed');

class MY_Input extends CI_Input {

    function dump_post()
    {
        $post = array();
        foreach ( array_keys($_POST) as $key )
        {
            $post[$key] = $this->post($key);
        }
        echo '<pre>'; var_dump($post); echo '</pre>';
    }
}

and call by inserting
Code:
$this->input->dump_post();
into your code.


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