I know that codeIgniter turns off GET parameters by default.
But by having everything done in POST, don't you get annoyed by the re-send data requests if ever you press back after a form submission?
It annoys me, but I'm not sure if I want to allow GET purely for this reason.
Is it such a big security issue to allow GET parameters too?
MY_Input.php :
MY_URI.php :
You simply need to enable it in the config.php and you can use
$this->input->get('param_name');
to get parameters.Even easier:
that plugin's pretty cool though.
This function is identical to the post function, only it fetches get data:
https://www.codeigniter.com/user_guide/libraries/input.html
"don't you get annoyed by the re-send data requests if ever you press back after a form submission"
you can get around this by doing a redirect from the page that processes your form submission to the success page. the last "action" was the loading of the success page, not the form submission, which means if users do an F5 it will just reload that page and not submit the form again.
You can enable query strings if you really insist. In your config.php you can enable query strings:
For more info you can look at the bottom of this Wiki page: http://codeigniter.com/user_guide/general/urls.html
Still, learning to work with clean urls is a better suggestion.