note 19810 added to function.setcookie
| From: | paul dot querelle at ntlworld dot com | Date: | Tue, 12 Mar 2002 03:32:04 +0000 |
| Subject: | note 19810 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27643@lists.php.net to get a copy of this message | ||
These three simple pages seem to work in IE5.5 at least (in three posts):
cookie.php:
<html>
Cookie Test:
<?php
if( !isset($TestCookie) ) display_register();
?>
<br>
<br>
Welcome Back: <?php echo "$TestCookie"; ?>
<br>
<form name="sf" action="rcookie.php" method="get">
If you are not <?php echo "$TestCookie"; ?>, click here ... <input
type="button" value="Reset Cookie" onClick="document.sf.submit()">
</form>
</html>
<?php function display_register() { ?>
<br>
<form name="sf" action="upcookie.php" method="get">
<input type="text" name="email" width="20">
<input type="button" value="Set Cookie"
onClick="document.sf.submit()">
</form>
</html>
<?php exit; ?>
<?php } ?>
--
http://www.php.net/manual/en/function.setcookie.php
http://master.php.net/manage/user-notes.php?action=edit+19810
http://master.php.net/manage/user-notes.php?action=delete+19810
http://master.php.net/manage/user-notes.php?action=reject+19810