note 19810 deleted from function.setcookie by irc-html
| From: | irc-html@php.net | Date: | Mon, 06 May 2002 23:25:47 +0000 |
| Subject: | note 19810 deleted from function.setcookie by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-30273@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 } ?>