Took me a long time to figure this sucker out. If you get the problem about adding header make sure this is before 1st <html> tag:
<?php
/* Include this before your html code */
include "./poll_cookie.php"; (------this has to be the path to the actual cookie creating php script)
?>
and it has to be at very top no spaces at all before it
I had just 1 space before the <?php and it kept giving me a smimilar message to this:
Warning: Cannot add header information - headers already sent by (output started at /usr/home/warzoneonline/public_html/index.php:7) in /usr/home/warzoneonline/public_html/poll/poll_cookie.php on line 22
gotta get rid of that and it should work for you. My poll would work, it just gave the warning at top of page after a vote but if you closed the window and reopened the page it was fine. Its just when it writes the cookie i suppose. Well hope this info saves someone from a few hours of head banging that i had to go threw
if u gettin these errors try this:
do the CHMOD 755 or similer to all your files in your poll folder , well it worked for me and it got rid of the errors so if all else fails try it...