hmm, den giver desværre bare et Parse error.
Du får lige koden hvor cookien bliver sat:
//header("P3P: CP=NOI CURa ADMa OUR NOR IND COM NAV")
//header("P3P: CP=\"NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM\"");
if (isset($_POST['bnavn'])) {
$loginUsername=$_POST['bnavn'];
$password=$_POST['password'];
$MM_redirectLoginSuccess = $_POST[forigeSide];
$MM_redirectLoginFailed = "
http://www.komputerwolf.com/include/login_cookie.php?forigeSide=" . $_POST[forigeSide];
mysql_select_db($database_opkobling, $opkobling);
$LoginRS__query=sprintf("SELECT brugernavn, password FROM brugere WHERE brugernavn='%s' AND password='%s'",
get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password));
$LoginRS = mysql_query($LoginRS__query, $opkobling) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
//declare two session variables and assign them
setcookie ("KW_Username", "$loginUsername", time() + 3600, '/');
header("Location:
http://www.komputerwolf.com" . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
Det hele foregår i frames, og jeg har en lille mistanke om at header location - redirected kunne give problemer..?