I have created a cookie with a filmvalue. now i need to check if the cookies value is equal to the same filmvalue or to another value.
if(isset($_COOKIE[votecookie]))
{
echo "Sorry You have already ranked this film <p>";
header("location: films.php?id=$id");
exit();
}
If the filmvalue is equal to the filmvalue already voted on then do the above code. but if the film is not voted on then do some other code.
is there a way to do something like this:
if(isset($_COOKIE[votecookie] && $cookiefilmvalue = $film))
{
echo "Sorry You have already ranked this film <p>";
header("location: films.php?id=$id");
exit();
}
=
with==
in yourif
clause