I have created a form in php/html for student attendance now what I want is that when I enter student reg.id in "std_id" text box his class in which he is studying should be fetched from the table of database and appear it in "class" text box.
The name of the table is ("student_attendance") in the database. I don't know how to do this. So please help me doing it.
` Student Reg. ID:
<td> Class: </td>
<td> <input type="text" name="class"/> </td>
</tr>
<tr>
<td> Section: </td>
<td> <input type="text" name="section"/> </td>
<td> Session: </td>
<td> <input type="text" name="session"/> </td>
</tr>
<tr>
<td> Date: </td>
<td> <input type="date" name="date"/> </td>
</tr>
<tr>
<td> Present Status: </td>
<td> <input type="text" name="pstatus"/> </td>
</tr>
</table>
<input type="submit" name="SAVE"/> //is used to save the form data in db
</form>`
Thanks