i have a php code to random 1 - 50 question from database anh print it in web
$arr1=array();
for($x=0;$x<10;$x++)
{
while(1)
{
$s=rand(0,50);
if(ktra($arr1,$s)==1)
{
$arr1[$x]=$s;
break;
}
}
}
$y=0;$arr2=array();
?>
<?php
for($x=0;$x<count($arr1);$x++)
{
$sql="select * from question where IDQuestion='".$arr1[$x]."'";
$result=DataProvider::ExecuteQuery($sql);
if($result !=false)
{
while($row=mysql_fetch_array($result,MYSQL_ASSOC))
{
$noidung=$row["Content"];
$caua=$row["A"];
$caub=$row["B"];
$cauc=$row["C"];
$caud=$row["D"];
$id=$row["IDQuestion"];
}
}
?>
<?php echo "<b><font color=#0F0 size=5px>$noidung</font></b>"?>
<br />
<form id = "checkbox" action="Ketqua.php" method="post">
<div>A:<input type="radio" name="<?php echo $id?>" value='$caua'/> <?php echo $caua?><br /> </div>
<div>B:<input type="radio" name="<?php echo $id?>" value='$caub'/> <?php echo $caub?><br /> </div>
<div>C:<input type="radio" name="<?php echo $id?>" value='$cauc'/> <?php echo $cauc?><br /> </div>
<div>D:<input type="radio" name="<?php echo $id?>" value='$caud'/> <?php echo $caud?><br /> </div>
how can i get value from check radio button and print it to screen
thanks