attempted to set testcookie to crap"; } function readthecookie() { global $testcookie; $outputString .= "
HTTP_COOKIE_VARS = ".$HTTP_COOKIE_VARS["testcookie"]; $outputString .= "
variable extraction $cookieName = ".$testcookie; return $outputString; } ############################## # MAIN $x = 2; if ( $x == 1 ) { setthecookie(); } else { echo readthecookie(); } ?>