RE: [PHP] array session variable problem (register_global=off)

2002-02-20 Thread Harry Yu
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

RE: [PHP] array session variable problem (register_global=off)

2002-02-20 Thread Johnson, Kirk
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

RE: [PHP] array session variable problem (register_global=off)

2002-02-20 Thread Harry Yu
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

RE: [PHP] array session variable problem (register_global=off)

2002-02-20 Thread Johnson, Kirk
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