hi,
I have following problem.
I have a form wich I post to another php file there i want to store the data
form the form in a cookie.
code:
<?
foreach ($HTTP_POST_VAR S as $key => $value) {
if($value=='ON' )
{
setcookie("Test Cookie","$key", time()+3600);
}
But it doens'n work. I have the following Error Warning: Cannot modify
header information - headers already sent by (output started at C:\Program
Files\Apache Group\Apache2
I understand the error and i have search in de tutorial form php.net, but
How can I handle this problem?
Thanks,
Alain
I have following problem.
I have a form wich I post to another php file there i want to store the data
form the form in a cookie.
code:
<?
foreach ($HTTP_POST_VAR S as $key => $value) {
if($value=='ON' )
{
setcookie("Test Cookie","$key", time()+3600);
}
But it doens'n work. I have the following Error Warning: Cannot modify
header information - headers already sent by (output started at C:\Program
Files\Apache Group\Apache2
I understand the error and i have search in de tutorial form php.net, but
How can I handle this problem?
Thanks,
Alain
Comment