<? include("connection"
;
$result = mysql_query("SELECT userid, password FROM tblUsers where inlognaam='" .$_POST['inlognaam'] ."'", $link);
if(mysql_num_rows($result) > 0) {
Setcookie("ID", mysql_result($result,0,'userid'),time()+3600);
Setcookie("Ingelogd","1",time()+3600);
Header("Location: gegevens.php"
;
}
Setcookie("ID","0",time()+3600);
Setcookie("Ingelogd","0",time()+3600);
?>
the problem is here ... when I set my cookie and I redirect to gegevens.php, the cookies are not set. Why is this? If I don't redirect everything works. How can I work around this? The One And Only KryptoS
$result = mysql_query("SELECT userid, password FROM tblUsers where inlognaam='" .$_POST['inlognaam'] ."'", $link);
if(mysql_num_rows($result) > 0) {
Setcookie("ID", mysql_result($result,0,'userid'),time()+3600);
Setcookie("Ingelogd","1",time()+3600);
Header("Location: gegevens.php"
}
Setcookie("ID","0",time()+3600);
Setcookie("Ingelogd","0",time()+3600);
?>
the problem is here ... when I set my cookie and I redirect to gegevens.php, the cookies are not set. Why is this? If I don't redirect everything works. How can I work around this? The One And Only KryptoS