?php
include ('D_Base_Connect.php');
$r = "SELECT * FROM userfile WHERE status='Pending'";
// $query = "SELECT * FROM userfile";
$rs = mysql_query($r);
while($row = mysql_fetch_array($rs)){
echo "
<tr> <form method='post' action='admininterface.php'>
<td><center>$row[0]</center></td>
<td><center>$row[1]</center></td>
<td><center>$row[2]</center></td>
<td><center>$row[3]</center></td>
<td><center>$row[4]</center></td>
<td><center>$row[5]</center></td>
<td><center>$row[6]</center></td>
<td><center>$row[7]</center></td>
<td><center>$row[8]</center></td>
<td><center>$row[9]</center></td>
<td><center>$row[10]</center></td>
<td><center><button type='submit' name='submit'>Mark Received
</button></td></form></tr>";
}
echo "</table>";
?></table>
</body>
</html>
<?php
if(isset($_POST['mark'])){
$sr= $_POST['fileid'];
$sql = mysql_query("UPDATE userfile Set status= 'Received' where fileid= '$sr'");
}
?>
“fileid” is primary key of Table “userfile” and i want to update the field STATUS from PENDING TO RECEIVED throuh html form , thruough submit button but it giver error that "fileid " not found After I submit the form.