Re: Re: $_session/$_cookie trouble

From: Date: Tue, 28 Apr 2009 23:27:41 +0000
Subject: Re: Re: $_session/$_cookie trouble
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-292116@lists.php.net to get a copy of this message
Andrew Hucks wrote:
$sale_value would have worked if it hadn't been in single quotes, I believe. (Assuming it was populated.).
Which it wasn't.. ;-) according to Gary's last post. He assigned it now with 'sale'.. however, I think it should rather be in double quotes ("sale") if he wants to get the posted value. echo $sale_value; now works because sale_value has been assigned a value. But: echo $_COOKIE['sale_cookie']; I would guess will still not work.. until landing on the next page, or reloading the first page. When you put it in quotes, you
were making the cookie's value a string instead of a variable. So, the value would actually have literally been $sale_value, rather than the value for that variable. It is working with $_POST['sale'] because there are no single quotes. :-p.
Gary, if you want to post your "working" code, we could probably tell you the "why's"... and it would also cater to my curiosity. ;-) Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o D. BROOKE EUCA Design Center WebDNA Software Corp. WEB:> http://www.euca.us | http://www.webdna.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o WebDNA: [** Square Bracket Utopia **]

« previous php.general (#292116) next »