<form id="form" class="formular" method="post" action="answer.php">
<?php
while($row = mysql_fetch_array($result))
  { 
    echo "<input type=hidden name=no value=".$row['no']."/>";
  	echo "<tr><td rowspan=2 bgcolor=lightblue width=20 align=center>".$row['no']."</td>";
	echo "<td colspan=4 bgcolor=lightblue width=740>".$row['question']."</td></tr>";	
	echo "<tr>";
	echo "<td width=50> <input name=".$i." type='radio' value='a'  />".$row['a']."</td>";
  	echo "<td width=50> <input name=".$i." type='radio' value='b'  />".$row['b']."</td>";
	echo "<td width=50> <input name=".$i." type='radio' value='c'  />".$row['c']."</td>";
  	echo "<td width=50> <input name=".$i." type='radio' value='d'  />".$row['d']."</td>";
	echo "</tr>";
	$i++;
    }
 
echo  "<tr><td colspan=5 align=center><input type=submit name=submit value=Submit></td></tr></table>";
mysql_close($connect);
?>

</form>

How can i acess the no feild at answer.php?

Member Avatar for diafol
$_POST['no']
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.