At the end of the form, after the hidden "submitted" input, I have a line
echo '<input type="hidden" name="id" value="' . $id . '" />
The query won't perform the update without this line, and I just wondered what it does, theoretically. I was having a terrible time until I started looking for scripts and saw this somewhere.