get_post($index[, $xss_clean = NULL])
Parameters:
$index (string) – GET/POST parameter name
$xss_clean (bool) – Whether to apply XSS filtering Returns:
GET/POST value if found, NULL if not Return type:
mixed
This method works the same way as post_get() only it looks for GET data first.
$this->input->get_post(‘some_data’, TRUE);
Note This method used to act EXACTLY like post_get(), but it’s behavior has changed in CodeIgniter 3.0.