I am using the following code on the php form handler

if ($_POST[referdrremember] == "true") {
setcookie("remailcookie",
"$_POST_VARS[refdremail]",time()+3600,"/","wasserstein.com","0");

Try to see the cookie in the same script, not sure which one to use with or
without $

print " the cookie's value is  $HTTP_COOKIE_VARS[remailcookie] ";
print " the cookie's value is 2 $HTTP_COOKIE_VARS[$remailcookie] ";

In addition when I get back to the calling form and refresh it I try to see
the cookie with this:

if ($HTTP_COOKIE_VARS[remailcookie]) {
  print ("remail cookie exists"); }
  else {
  print ("no cookie");
  }

This yeilds "no cookie"

I have also tried $_COOKIE[] as well


What am I doing wrong.

Thanks in advance,

Jack

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

Reply via email to