Re: problems with a login/register script
Posted: Thu Apr 29, 2010 1:47 am
I forgot to put in the database name. It now works!!! YAY
Im going to attempt to use the principals from this to rewrite the login code.
What is magic quotes? Also this just strips lashes correct?
Im going to attempt to use the principals from this to rewrite the login code.
Code: Select all
# If Magic Quotes are enabled, stripslashes()
if(get_magic_quotes_gpc()) {
$input = array(&$_GET, &$_POST, &$_COOKIE, &$_ENV, &$_SERVER);
while(list($k, $v) = each($input)) {
foreach($v as $key => $val) {
if(!is_array($val)) {
$input[$k][$key] = stripslashes($val);
continue;
}
$input[] =& $input[$k][$key];
}
}
unset($input);
}