Hello, my following script is not working. It is a cookie test. Its sets a cookie, and then checks for it's presence. but it is giving 'Failed' everytime, meaning either the cookie is nt being set, or is not being checked for.
<?php
$status = 0;
if (isset($myTstCky) && ($myTstCky == "ChocChip")) $status = 1;
if (!isset($CCHK)) {
setcookie("myTstCky", "ChocChip");
header("Location: $PHP_SELF?CCHK=1");
exit;
}
?>
<head><title>Cookie Check</title></head>
<body bgcolor="#FFFFFF" text="#000000">
Cookie Check Status:
<?php
printf ('<font color="#%s">%s</font>;',$status ? "00FF00" : "FF0000",$status ? "PASSED!" : "FAILED!");
?>
</body>
Any ideas?