"Msa" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> no, I am not sure of that.....I played with that code snippet from someone
> else. how do I check for the value instead? would the reason why they
> aren't working be because of checking for length and not value?
>
> >
> > Are you sure you want to check the string length of the cookie instead
of
> > its value?
> >
> > Regards, Torsten Roehr
You wrote you have three states, so the three condition should be:
// secure
if (isset($_COOKIE['levelCookie'] && $_COOKIE['levelCookie'] === 1)) {
}
// sales
if (isset($_COOKIE['levelCookie'] && $_COOKIE['levelCookie'] === 2)) {
}
// secure
if (!isset($_COOKIE['levelCookie')) {
}
Try if this is what you want.
Regards, Torsten
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php