topical media & game development
basic-php-12-testcookie.php / php
<html>
<head>
<title>Beginning PHP5, Apache and MySQL</title>
</head>
<body>
<h1>This is the Test Cookie Page</h1>
<p>
<?php
if (_COOKIE['password'] == "") {
?>
No cookie was set.<br>
<a href=<setcookie.php>>Click here</a> to set your cookie.
<?php
} else {
?>
Your cookies were set:<br>
Username cookie value: <b><?php echo _COOKIE['password']; ?></b><br>
<?php
}
?>
</p>
</body>
</html>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.