Tag Archives: codeigniter get post data in controller

Codeigniter get post data


Codeigniter get post data : $this->input->post(‘field_name’); is used for getting data from post method.


Syntax : Codeigniter get post data


$this->input->post('field_name');

Suppose we have a simple form :

'post')); ?>







Suppose our controller is :

input->post('name');

          
       }
}

which will print the name posted from the form using post method