<?
$check = "test";
$check .= $filename;
if ($test == $check)
{
print("<BODY>You have already voted. Thank you.</BODY>");
}
else
{
$rated = "test";
$rated .= $filename;
setcookie(test, $rated, time()+86400);
print("<BODY><br>You haven't voted before would you like to</BODY>");
}
?>
have fun