Since I’m all out of ideas to solve my poll... Could anyone be kind and give me a link(s) to a simple poll that has setcookie solutions for an anti-vote-as-many-times-you-want.
This script Ive worked out dosent work to good. You can vote as many times you want.
if($radiopoll==1)
{
$poll_checked_1 = "checked";
if (!isset($HTTP_COOKIE_VARS['pollcookie']))
{
mysql_query("UPDATE polli SET ja=ja+1");
$rostat="ja";
setcookie("pollcookie", $rostat, time()+3600*1000, "http://localhost/mysqltestar/");
}
}
if($radiopoll==2)
{
$poll_checked_2 = "checked";
if (!isset($HTTP_COOKIE_VARS['pollcookie']))
{
mysql_query("UPDATE polli SET nej=nej+1");
$rostat="ja";
setcookie("pollcookie", $rostat, time()+3600*1000, "http://localhost/mysqltestar/");
}
}
Cheers
knuff