mutiple choice calculations
Posted: Tue Aug 01, 2006 10:33 am
hi there,
I was wondering if anyone had any ideas of how I can represent a correct answer asw a number which will be calculated and sent back via the feedback page
Is it possible to use a condition such as:
or something similar?
Any feedback would be appreciated.
Thank you
I was wondering if anyone had any ideas of how I can represent a correct answer asw a number which will be calculated and sent back via the feedback page
Code: Select all
echo "<p><input type=radio name=Q1 value=\"$aa\">$aa<br />
<input type=radio name=Q1 value=\"$ab\">$ab<br />
<input type=radio name=Q1 value=\"$ac\">$ac<br />
<input type=radio name=Q1 value=\"$ad\">$ad<br /></p>";Code: Select all
if($aa = $Q1) {
$Q1 == 1;
}else{
$Q1 == 0;Any feedback would be appreciated.
Thank you