I have a form that submits to a database. But before it enters the database the submitted data is output on the screen. Currently, if I have "Mike's" submitted, it outputs "Mike\'s".
I have tried the below code to see if it is Magic Quotes, but this has not helped.
if ((function_exists("get_magic_quotes_gpc") && get_magic_quotes_gpc()) ||
ini_get('magic_quotes_sybase')
) {
foreach($_GET as $k => $v)
$_GET[$k] = stripslashes($v);
foreach($_POST as $k => $v)
$_POST[$k] = stripslashes($v);
foreach($_COOKIE as $k => $v)
$_COOKIE[$k] = stripslashes($v);
}
What should I look for?