Also there are many other examples of dealing with this problem at: http://us2.php.net/manual/en/function.get-magic-quotes-gpc.php that may be better than the one I pasted in in my last e-mail. In any case, I highly recommend we use one of the solutions that rewrites the $_POST array rather than a solution that requires using a function for every use of a POST variable.
-Charles
dc.ml@oxys.net wrote:
Hi,
What do you think about that :
function getPOST($name) { global $_POST; if(is_set($_POST[$name])) { if(get_magic_quotes_gpc () == 1) return *stripslashes(*$_POST[$name]); else return $_POST[$name]; } return null; }
same thing for $_GET we only need to change all $_GET and $_POST.
I think it's more easy than playing with .htaccess or php.ini.
If you agree, I'll do it tonight.
David