Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Cookie</title>
</head>
<body>
<?php
setcookie("test", 45, time()+(3600));
echo "This page has loaded correctly! But is thy cookie there!";
?>
<br />
<a href="cookie_read.php">Check that cookie!</a>
</body>
</html>
Any ideas as to why it's all going wrong!!!!!
Thanks guys!
Andy