Using POST data after validating using CodeIgniter Using POST data after validating using CodeIgniter codeigniter codeigniter

Using POST data after validating using CodeIgniter


The CodeIgniter input class allows you to get the POST data after it has been filtered by the form validation library. In your controller you would do the following:

$username = $this->input->post('username');$email = $this->input->post('email');$password = $this->input->post('password');


even easier, create an array and send the array to the model


You can use the input class as well as the helper function set_value('email')