note 52115 added to function.setcookie

From: Date: Thu, 21 Apr 2005 14:00:03 +0000
Subject: note 52115 added to function.setcookie
Groups: php.notes 
Request: Send a blank email to php-notes+get-88350@lists.php.net to get a copy of this message
Well! I have some problem with this code, because not work well... <?php #COOKIE TEST PAGE #error_reporting(0); header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"'); $name = $HTTP_POST_VARS["name"]; if(!isset($name)) { echo "ancora non conosco il tuo nome<br>"; } else { setcookie("nome",$name); #,time() + 15); echo "il tuo nome è ".$nome."<br>"; } ?> <form action="index.php" method="post"> <input type="text" name="name"><br><input type="submit" value="submit"> </form> test it please.. And how i can adjust it?!?! Thanks at all!! ---- Manual Page -- http://www.php.net/manual/en/function.setcookie.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52115 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52115&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52115&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52115&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52115&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52115&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52115&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88350) next »