Please I wondered why this code did not print anything.
I tried to run several times but I did not get a reply.
Please help me out.
Thanks in Advance
Code: Select all
<?
if ($MODE!=="test") {
SetCookie("COOKIE", "VALUE");
Header("Location: ".$SCRIPT_NAME."?MODE=test");
exit;
} else if ($COOKIE=="VALUE") {
echo "Cookies are enabled";
} else {
echo "Cookies are disabled";
}
?>