I have multiple questions and each question has 4 answers, I display all questions and their answers in PHP, by:
while($row=mysqli_fetch_array($rs))
{
echo "question:".$row['question']."<br>";
?>
<input type="hidden" name="id[<?php echo $row[id] ?>]" value="<?php echo $row[id] ?>" />
<?php echo $row['op1'] ?>
<input type="radio" name="opt[<?php echo $row['id'] ?>]" value="<?php echo $row['op1'] ?>-<?php echo $row['id'] ?>" /><br>
<?php echo $row['op2'] ?>
<input type="radio" name="opt[<?php echo $row['id'] ?>]" value="<?php echo $row['op2'] ?><?php echo $row['id'] ?>" /><br>
<?php echo $row['op3'] ?>
<input type="radio" name="opt[<?php echo $row['id'] ?>]" value="<?php echo $row['op3'] ?><?php echo $row['id'] ?>" /><br>
<?php echo $row['op4'] ?>
<input type="radio" name="opt[<?php echo $row['id'] ?>]" value="<?php echo $row['op4'] ?><?php echo $row['id'] ?>" /><br>
<?php
}
?>
<input type="submit" value="answer" /><br>
How can I get radio button value for each $row['id'] on the next page.