Hello!!
I am trying to set a cookie
I am trying to use the following code
setcookie ("cookie[three]", "cookiethree");
setcookie ("cookie[two]", "cookietwo");
setcookie ("cookie[one]", "cookieone");
if (isset ($cookie)) {
while (list ($name, $value) = each ($cookie)) {
echo "$name == $value<br>\n";
}
}
I get the following error
PHP Warning: Cannot add header information - headers already sent in c:\program files\apache group\apache\htdocs\ram\new\mail.php on line 11, 12, 13
My php is running on Win-NT
should I configure anything in php.ini file??
Regards