CodeIgniter Forums
Set variable on $this->input->post() function - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: Best Practices (https://forum.codeigniter.com/forum-12.html)
+--- Thread: Set variable on $this->input->post() function (/thread-67298.html)



Set variable on $this->input->post() function - rupamhazra - 02-07-2017

Hi,

I want to set array of data  on $this->input->post() like $_POST variable.How can i do this??


RE: Set variable on $this->input->post() function - skunkbad - 02-07-2017

(02-07-2017, 06:35 AM)rupamhazra Wrote: Hi,

I want to set array of data  on $this->input->post() like $_POST variable.How can i do this??

Code:
$_POST = array(
 'foo' => 'bar'
);