Code: Select all
function cookietest() {
//set a new cookie name based on the id of the answer (cRima)
$cookiename="Rimodromo".(string)$_GETї'cRima'];
//check if the cookie is set
if (!isset($_COOKIEї'$cookiename'])){
setcookie($cookiename, (string)$_GETї'cRima'], time()+3600);
return false;
}
else return true;
}The problem is that function cookietest is alway returning false, thus allowing every vote! I only see ONE cookie on my pc, with it's name and value changing according to the differents choices i make! I want to see several cookies, each with it's own name and value.
Can anyone help me with this one?
Thanks in advance!