On Wednesday 05 June 2002 13:22, Tom Ray wrote:
> when I do that it comes up with
>
> Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
> `T_NUM_STRING'
>
> Justin French wrote:
> >you should be able to access it via $_COOKIE['name'], or what I do,
> > $cookie = $_COOKIE['name'].
> >
> >Justin French
> >
> >on 05/06/02 2:19 PM, Tom Ray ([EMAIL PROTECTED]) wrote:
> >>I've been playing with cookies, and I've been able to write information
> >>to a cookie, but now what I want to do is pull that information from the
> >>cookie. Is there something special I need to do to pull that info or
> >>should I just be to get that data by delcaring a variable in the php
> >>script?

You're probably using it inside a double-quoted string in which case you need 
to use:

echo "Cookie is $_COOKIE[name]";

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
It is your destiny.
- Darth Vader
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to