can somebody help me in dealing with this project...
I am making a quiz that a user can input their own set of questions..after doing a quiz other users can take it..and I don't know how to check if the user answers were right..
can you please help me? thanks!

Here's my code in getting the users answer to questions..


	<form id="form1" name="form1" method="post" action="engquiz4.php">
  <table width="500" border="0">
      <td colspan="500"><b>Multiple Choice</b></td>
      <td colspan="500"><b>Choose the correct answer and press the "submit" when done.</b></td>
$connect = mysql_connect("localhost","garry","perez")or die("can't access database");
mysql_select_db("phplogin") or die("can't access database");

$SQL="SELECT* FROM engquiz WHERE quiznum=1";
$group1 = "1";

    	echo $group1.". ".$row['question']."<br>";
		echo "<input type= \"radio\" name =\"$group1\" value=\"q1o1\">".$row['opt1']."<br>";
		echo "<input type= \"radio\" name =\"$group1\" value=\"q1o2\">".$row['opt2']."<br>";
		echo "<input type= \"radio\" name =\"$group1\" value=\"q1o3\">".$row['opt3']."<br>";
		$group1 ++;
    <input type="submit" name="Submit" value="Submit" />
5 Years
Discussion Span
Last Post by diafol

check the data from the form against the 'correct value' in your DB. If you haven't got a cluse what I'm talking about, read up on $_POST variables and MySQL statements.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.