Hi so I wanted to make a little quiz in php
if(isset($_POST['City'])) {
echo "<strong>Answer nr1:<BR></strong>";
$cities= $_REQUEST["City"];
$odp = "Madrid" || "madrid";
//$odp = "Madrid" && "madrid";
//neither of OR/AND works here
if($cities== $odp){
echo "Your answer is <Font Color=#009900>correct</font> <P>";
}
elseif($cities== ""){
echo "Please fill in this form<P>";
}
else{
echo "Your answer is <Font Color=#FF0000>false</font> <P> ";
}
}
So yeah as you can see in my code i'm trying to let the php code here count the correct answers either lowercase and not.
So I'm wondering is there anothere method for or am I doing something wrong
any help would be appreciated
thanks & regards
Katsurou