Cookies

From: Date: Tue, 14 Nov 2000 15:20:26 +0000
Subject: Cookies
Groups: php.windows 
Request: Send a blank email to php-windows+get-3833@lists.php.net to get a copy of this message
I am using this bit of code to check for a cookie, <? if ($mywapfone_registered){ SOME CODE HERE } else { do something else here; } ?> 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 Can I suppress this error message, as the cookie check works, or there new code that I should know about for php4? -- Ben Cairns, Head Of Technical Operations, Intasept.com E-Mail: BenC@intasept.com | Web: http://www.intasept.com

« previous php.windows (#3833) next »