Hi,
I'm going through the tutorial at http://www.php.net/manual/en/function.setcookie.php and not able to see any results displayed .Would appreciate suggestions or remarks as to what I'm doing wrong.
Since cookies will not become visible until the next loading of a page I comment parts to see if that makes a difference.
1 method:
<?PHP
//$value = "1234"; //or
//setcookie ("cookie", "1234"/$value/);
if (isset ($cookie)) {
while (list ($name, $value) = each ($cookie)) {
echo "$name == $value<br>\n";
}
}
?>
2 Method:
<?php
//$value = "1234"; //or
//setcookie ("cookie", "1234"/$value/);
echo $cookie;
echo $_COOKIE["cookie"];
?>