I'm making an application to store student records and edit and delete them but the server is issuing undefined variable error (on $name, $school_name, $roll_no, $result variable lines) although the variables are defined and i have used echo to check and all the variables seem to work fine ... kindly help me
<form action = 'edit.php?edit_form=<?php echo $edit_id; ?>' method = 'post'>
<table align = "center" width = "500" border = "5">
<tr>
<td colspan = "5"> <h1 align = "center">Update Record</h1> </td>
</tr>
<tr>
<td align = "right">Student Name:</td>
<td> <input type = "text" name = "name" value = "<?php echo $name; ?>"> </td>
</tr>
<tr>
<td align = "right">School Name:</td>
<td> <input type = "text" name = "school" value = "<?php echo $school_name; ?>"> </td>
</tr>
<tr>
<td align = "right">Roll No:</td>
<td> <input type = "text" name = "roll_no" value = "<?php echo $roll_no; ?>"> </td>
</tr>
<tr>
<td align = "right">Result:</td>
<td> <input type = "text" name = "result" value = "<?php echo $result; ?>"> </td>
</tr>
<tr>
<td colspan = "5" align = "center"> <input type = "submit" name = "update" value = "Update Now"> </td>
</tr>
</table>
</form>