am making this system and am stuck in a problm need help
my database has table attandence where fields are
att_id
s_no
std_reg_no
std_name
semester_id
total_classes
present
absent
i have made this form in which students of specific semester are displayed and radio buttons to mark whether a student is present or absent . i used s_no of students in the name of radio through an array following is the code
<form method="POST" enctype="multipart/form-data" >
<input type="hidden" name="chk" value="update">
<table border="groove" cellpadding="15px">
<tr>
<td>s.no</td>
<td>Reg. No</td>
<td>name</td>
<td>Present</td>
</tr>
<?php
while ($row = mysql_fetch_assoc($rs)){
$id= $row['s_no'];
$no[]= $row['std_reg_no'];
echo "<tr><td>";
echo $row['s_no']."</td><td>";
echo $row['std_reg_no']."</td><td>";
echo $row['std_name']."</td>";
echo "<td> <input type='radio' name='attend[$id]' value='present' >Present <input type='radio' name='attend[$id]' value='ab'>absent</td></tr>";
}
echo "</table>";
echo "<input type='submit' name='btnAbsent' value='submit'>";
echo a;
?>
</form>
what i want to do in php is to take each radiobutton if it is present add +1 to present and if absent +! to absent please someone help