Hi all,
I suddenly get a headers already send notification when answering a poll question. The data is logged correctly, but when returning the poll results, the error is given above all other code.
I include the poll file in my main index. It all worked fine a few weeks ago so I assume it has something to do with my hosting provider making stupid changes. Again.
The line that gives the error (according to the message) is
setcookie($cookie_name, "1", $endtime); from the piece of code below:
if ($action=="vote" && (isset($HTTP_POST_VARS['option_id']) || isset($HTTP_GET_VARS['option_id']))) {
$cookie_name = "TrafficBuildersPoll".$poll_ident;
if (!isset($HTTP_COOKIE_VARS[$cookie_name])) {
$endtime = time()+3600*$cookie_expire;
setcookie($cookie_name, "1", $endtime);
}
}
Can someone please advise?
Kind regards,
Wolter