Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
CodeIgniter

GET and POST Methods in CodeIgniter

Read query string and form body data using getGet() and getPost().

GET and POST Methods in CodeIgniter — a practical guide to CodeIgniter GET POST with clear examples you can reuse in real projects.

CodeIgniter Tutorial Series (22/74). Prefer one article? Read the complete CodeIgniter tutorial.

Short description

GET is for reading/filtering. POST is for submitting forms or creating resources. Validate both before trusting values.

Read GET/POST

$q = $this->request->getGet('q');
$name = $this->request->getPost('name');
$all = $this->request->getPost(); // array

Leave a reply

Your email address will not be published. Required fields are marked *