如何将所有输入(问题、选择、答案)保存在数据库中?我无法将正确答案保存在数据库中。如何获得通过单选按钮选择的所选值?或者还有别的吗?
<form action="test2.php" method="post">
<?php
if($numMC > 0)
{
echo "<b>"."MULTIPLE CHOICE QUESTIONS: Enter them below followed by their correct answer."."</b>";
echo "<br>";
for ($j=1; $j<=$numMC; $j++)
{?>
<p><textarea name="question[<?php echo $j; ?>]" rows=3 cols=90>question[<?php echo $j; ?>]</textarea></p>
<?php for($k=1;$k<=$numchoices;$k++)
{
echo $k; ?>
<input type="radio" name="right[<?php echo $j; ?>]">
<input type="text" name="choice[<?php echo $j; ?>][<?php echo $k; ?>]" value="choice[<?php echo $j; ?>][<?php echo $k; ?>]"><br />
<?php }
echo "<br>"."<br>";
}
} ?>
<input type="submit">
我将如何确定选择了哪个单选按钮以及如何获得所选单选按钮的值?