I am doing a online test I fetch question and option from database.... I need to select which option they choosed and question id....to the next page for the answered question or not.....I got only they selected option I need get all value....
olarak benim php kod aşağıda
<tr>
<td height="30"><?= $id?></td>
<td height="30" colspan="2"><?= $question ?></td>
</tr>
<?php
if($option1!='') { ?>
<tr>
<td height="30"><input type="radio" name="answer[<? echo $id?>]" value="<?php echo $id?>-<?php echo $option1?>" /></td>
<td height="30" colspan="2"><?= $option1?></td>
</tr>
<?php }?>
<?php if($option2!='') {?>
<tr>
<td height="30"><input type="radio" name="answer[<? echo $id?>]" value="<?php echo $id?>-<?php echo $option2?>" /></td>
<td height="30" colspan="2"><?= $option2?></td>
</tr><?php }?>
<?php if($option3!='') {?>
<tr>
<td height="30"><input type="radio" name="answer[<? echo $id?>]" value="<?php echo $id?>-<?php echo $option3?>" /></td>
<td height="30" colspan="2"><?= $option3?></td>
</tr><?php }?>
<?php if($option4!='') {?>
<tr>
<td height="30"><input type="radio" name="answer[<? echo $id?>]" value="<?php echo $id?>-<?php echo $option4?>" /></td>
<td height="30" colspan="2" ><?= $option4?></td>
</tr>
<? }