Re: Cookies
| From: | Andy Hoffman | Date: | Tue, 14 Nov 2000 18:24:48 +0000 |
| Subject: | Re: Cookies | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-3843@lists.php.net to get a copy of this message | ||
Ben Cairns wrote:
> As you can see the cookie name is mywapfone_registered. This works in PHP3,
> but not 4, it says:
> Warning: Undefined variable: mywapfone_registered in
> d:\apache\htdocs\devel\wapsite\builder\index.php on line 3
This is most likely a setting issue in php.ini... if you want to access cookie
vars (or form vars) using this "quick" syntax (where the variable is
automatically created by php), then check to make sure track_vars and
register_globals are both set to On in your php.ini.
If you don't want to take a performance hit (these settings will slow down
php), you can get at the cookie variables with
$HTTP_COOKIE_VARS["<variablename>"].
--
Andy Hoffman
Web Developer
Bristol-Myers Squibb
email: andy.hoffman@bms.com