Thanks Kirk,
That works.
Harry
__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Doh! I meant this:
$_SESSION['name']['first'] = 'First Name';
> -Original Message-
> From: Harry Yu [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 20, 2002 4:52 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] array session variable pr
Thanks for your reply,
I have no problem assigning variable. I just can't
retrieve them. If I use $_SESSION[foo['bar']], I got
this error in Apache log.
[Wed Feb 20 16:44:50 2002] [error] PHP Parse error:
parse error, expecting `']''.
Any other idea?
Thanks,
Harry
The code in the first file
The code in the first file is correct if register_globals is on. Since it is
off, remove the call to session_register() and just assign values directly
to $_SESSION, e.g.,
$_SESSION[name['first']] = 'First Name';
Kirk
> -Original Message-
> From: Harry Yu [mailto:[EMAIL PROTECTED]]
> Se
4 matches
Mail list logo