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 **]

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

Reply via email to