I have a script that checks answers to a quiz in this fashion:
if (strcmp($ques1, 'ques1answer')) {
$wrong=$wrong+1;
}
else{
$right=$right+1;
}
However, I have one question that has two text fields, and both of them need to be correct in order to get the point. I tried this, but it didn't work:
if (strcmp($ques1a, 'answer1') & strcmp($ques1b, 'answer2')) {
$wrong=$wrong+1;
}
else{
$right=$right+1;
}
Does anybody have an idea of what I could try?