I am writing a library for CI, and I have a method that I call to collect all possible post variables. I would like to somehow use the xss and security classes built into the codeigniter input class.
Is it possible?
Here is a working method without using the CI input class.
private function parse_options() { foreach($_POST as $key => $val) { $options[$key] = $val; } return $options; }
source share