<?php
if($points==0 && $answer=="me"){
setcookie("points", "1", time()+3600);
$points ++;
echo "CORRECT";
}
if($points==1 && $answer=="reading"){
setcookie("points", "2", time()+3600);
$points ++;
echo "CORRECT";
}
if($points==2 && $answer=="q2"){
setcookie("points", "3", time()+3600);
$points ++;
echo "CORRECT";
}
if($points==0 && $answer !="me"){
echo "Incorrect - Please try again";
}
if($points==1 && $answer !="reading"){
echo "Incorrect - Please try again";
}
if($points==2 && $answer !="q2"){
echo "Incorrect - Please try again";
}
?>
If you enter it incorrectly it says incorrect however if you enter "me" correctly it says correct and incorrect if you enter "reading" correctly it says correct and incorrect however if you enter "q2" correctly it just says correct. Anyone know why this is?