[h1]Enable Cookies Check in PHP[/h1]
<?php
if ($MODE!=="elite") {
SetCookie("COOKIE", "VALUE");
Header("Location: ".$SCRIPT_NAME."?MODE=elite");
exit;
} else if ($COOKIE=="VALUE") {
echo "Cookies are enabled";
} else {
echo "Cookies are disabled";
}
?>
If cookies are enabled, the form will display "cookies are enabled" if not, the } else { function is telling the php code to move on and display the "cookies aren disabled" code, because the cookies wasn't enabled.