HI,
I am trying to use afunction to reuturn the status of a cookie. But I wlays get back back 'cookie ther', even when it is not. What I am doing wrong. Is my logic / code wrong?
Heres my test script..
<?php
require("funcs.php");
if (!cookie_present) {
echo "cookie NOT here";
} else {
echo "cookie there";
}
echo "COOKIE:$cookieID";
?>
And here is my funcs.php file
<?php
return - 1 if OK : 0 if error
function cookie_present {
if (isset($CookieID)) {
return 1;
} else {
return 0;
}
}
?>