Well its kinda of hard to explain but I will give it my best shot.
I have a script that querys mysql and makes a form depending on how many questions are in the database. There may be more then two questions(id) in the database so at this time I only have two questions so it would display this;
<form action="test.php" method="get">
<input name="choice[1]" type="radio" value="1">
<input name="choice[1]" type="radio" value="2">
<input name="id[1]" type="hidden" value="1000"><br />
<input name="choice[2]" type="radio" value="3">
<input name="choice[2]" type="radio" value="4">
<input name="id[2]" type="hidden" value="2000">
<input name="op" type="hidden" value="ds">
<input name="submit" type="submit">
</form>
From there they can answer one or more questions but only marking on of each choice.
On the test.php I this to display what was marked.
if($op == "ds") {
for($i=1; $i <= count($choice); $i++) {
$choices .= "you picked $choice[$i] of question $id[$i]<br />";
}
echo $choices;
}
I hope that kinda makes some sence.
KKurcura