Codeignitor GET and POST method uses.

In this tutorial we are going to implement the get and post method using codeignator. both are used to retrieve data from the form input field. see below is syntax.

GET and POST method syntax.

Form Submission with Use Get Method.
inside the view file we simply make the html form and form action we are making the call the controller see below example.form is controller and data_submitted is method.

View file

when user press the submit button call the method data_submitted(). we simply get all the data.

Controller file

Get and post both are same for getting data you can implement same result as get and post.