Cookies

From: Date: Tue, 31 Oct 2000 20:12:20 +0000
Subject: Cookies
Groups: php.general 
Request: Send a blank email to php-general+get-23229@lists.php.net to get a copy of this message
Hi, why is the following code invalid? -------- <? if (!$count) { setcookie ("count", "1"); } if (!$phone) { setcookie ("phone", "false"); } if (!$sort) { setcookie ("sort", "false"); } if (!$language) { if (strstr($HTTP_ACCEPT_LANGUAGE,"nl")) { setcookie ("language","nl"); } else { setcookie ("language","en"); } } echo $HTTP_COOKIE_VARS["phone"]; ?> <HTML> (...) Hello visitor, you have seen this page <? $count++; echo $count; ?> times.<p> <? ------------ It's in the beginning of the file. Jan

« previous php.general (#23229) next »