note 52115 rejected from function.setcookie by betz
| From: | betz@php.net | Date: | Fri, 22 Apr 2005 09:47:33 +0000 |
| Subject: | note 52115 rejected from function.setcookie by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-88388@lists.php.net to get a copy of this message | ||
Note Submitter: info at espertini dot com
----
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!!