Re: Cookie Problems
| From: | Ernest E Vogelsinger | Date: | Sun, 27 Apr 2003 12:41:40 +0000 |
| Subject: | Re: Cookie Problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145411@lists.php.net to get a copy of this message | ||
At 13:05 27.04.2003, websteve said:
--------------------[snip]--------------------
>Hi!
>
>Does anyone know how to query an cookie array by name?
>I have ie.
>
>infohunter[passmd5]
>infohunter[interstitial]
>infohunter[user]
>
>And now i want to query
>if (isset($_COOKIE['infohunter['interstitial']'])) {
>
>But it doesn't work
>I just kann verify if the cookie exists
>And not if there is an element available in the array infohunter
--------------------[snip]--------------------
Maybe
if (isset($_COOKIE['infohunter']['interstitial']))
would work?
Check out the documentation
(http://www.php.net/manual/en/language.types.array.php) about correct array
addressing.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/