Cookie lifetime (starting n ending)

From: Date: Thu, 16 Nov 2000 06:26:40 +0000
Subject: Cookie lifetime (starting n ending)
Groups: php.windows 
Request: Send a blank email to php-windows+get-3886@lists.php.net to get a copy of this message
if my code is something like this <? if (!isset($blah) { setcookie("blah","2",mktime(0,0,0,01,01,2001); } else { $blah+=1 } ?> <html> .... ... ... <? echo "you have visited $blah times"; ?> this code doesnt increment $blah any idea why ??? is it because i put an html code in the middle ? also sometimes when i do something on top... run some html in the middle and again do some php code... it doesnt retain the values to the bottom half. Thanks satish

« previous php.windows (#3886) next »