What you've shown certainly
didn't work for your professor:
- You cannot nest
<form>
elements. Your "upload" form is never closed, so each subsequent form is nested within the forms from the previous rows. - A
<form>
element cannot appear directly within a <tr>
element. Only <td>
and <th>
elements are allowed within a <tr>
element.
For a start, you will need to move the
<form>
elements
inside the
<td>
elements, and make sure they're closed in the correct order.
<td><form> ... </form></td>
However, it's not clear what your checkbox is meant to do. If you were wanting to submit the ID from multiple rows, this will not work - each form will only contain the checkbox for its own row.