Re: Newbie - Can't get sessions to work
| From: | John Nichel | Date: | Wed, 22 Oct 2003 19:45:32 +0000 |
| Subject: | Re: Newbie - Can't get sessions to work | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167154@lists.php.net to get a copy of this message | ||
Chris W. Parker wrote:
John Nichel <mailto:jnichel@by-tor.com>Duh, that's what I get for just glancing at it. This is why the 'other' John is wearing the crown now. :) -- By-Tor.com It's all about the Rush http://www.by-tor.comon Wednesday, October 22, 2003 11:33 AM said:Not when it's inside a string. His statements should output the following: foo = somevalue<BR> bar = anothervalue Also... he's using { and } because you can't access an array's value unless it's within curly braces.<?php echo "foo = {$_SESSION['foo']}<BR>"; echo "bar = {$_SESSION['bar']}";Get rid of the "foo =" and the "bar =". when you use the single equals sign, you're setting value....