How To Become All Post Information Inward Codeigniter
Before you lot bring to create this long ho-hum trend to choke all the postal service datas using Codeigniter.
$post = array(); foreach ( $_POST equally $key => $value ) { $post[$key] = $this->input->post($key); } var_dump($post);Since CI 2.1.0, you lot tin forthwith create the next tardily trend to choke all postal service information from the form.
$data = $this->input->post(NULL, TRUE); // returns all POST items amongst XSS filter $data = $this->input->post(); // returns all POST items without XSS filterThis tin survive handy if you lot bring dynamically built bird amongst a lot of fields too can't define each field's name. With this method you lot tin choke all postal service information from the form. Sumber http://developer-paradize.blogspot.com
Comments
Post a Comment