[eluser]CodeIgniterNewbie[/eluser]
Assume I have a function that accepts one string argument:
Assume also that I will execute this function via Eval:
Code:
eval("foo($string-from-form);");
As suggested by the above snippet, the value for the argument will come from form input.
QUESTION: how do I prepare the form input so that it doesn't cause an problems when it is passed to the function inside the eval? "addslashes" doesn't seem to be sufficient; I still get failures if I try to enter something with a double quote (and probably a few other characters).
The string argument is to be stored in an object, then later stored in MySQL.