I have the following code. It works perfectly on a Localhost:
if(isset($_GET['vote']) AND isset($_GET['ididea']))
{
setcookie($_GET['ididea'], $_GET['ididea'], time() + 365*24*3600, null, null, false, true);
}
And this is the error by the server:
Warning: Cannot modify header information - headers already sent by (output started at /home/sirobdco/public_html/index.php:15) in /home/sirobdco/public_html/includes/votetovote/includes/2/bodyvotetovote.php on line 4
And what I have on line 15?The first line of code in body:
<?php