Hi I am have to enter marks of 50 students through a single page
<table border="1">
<tr><td height="50">UserID </td><td>Name</td><td>Marks </td></tr>
<?php
include('db_connect.php');
$bname=$_POST['bname'];
$res = mysql_query("SELECT * FROM user WHERE batch='$bname'");
while($data = mysql_fetch_array($res))
{
$uname=$data['uname'];
$uid=$data['uid'];
echo "<tr><td>$uid </td><td>$uname</td> <td> <input type='text' size=3 name='$uname'></td></tr>";
}
echo "<tr><td colspan='2'><input type='hidden' name='bname' value='$bname'></td></tr>";
?>
</table>
This is how I am creating the form. Please suggest me how to proceed further. How to retrieve data on next page and how to store them in a database.