RE: Re: here is the problem again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



AndreaD <mailto:andrea.davidson@xxxxxxxxxxxx>
    on Tuesday, March 22, 2005 12:25 PM said:

> The cookie will not/set or print out.
> http://www.aztechost.com/problem.phps 

   setcookie("cookie[$name]", $age);
   echo $_COOKIE[$name]; 

I think it should be:

   setcookie("cookie[$name]", $age);
   echo $_COOKIE['cookie[{$name}]']; 

??

Please see http://www.php.net/setcookie.


Also you're teaching yourself a very bad habit of writing scripts with
register_globals turned on. See google for more information.


Chris.

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux