If you want me to move it to the main forum, let me know.
Second, I confess that I don't understand how it works, even if it is empty.
And the starting value of id is undefined (see that you have a field name id in your html code, but not id)
Additionally, you're naming your input fields as if they were arrays.
<input type="text" name="id" value="0" class="id" />
HTML is only a MarkUp language (when a coder says that he programs in HTML, you know for sure that a) he doesn't have a clue what he's talking about or b) He got the wrong concepts and ideas).
Also, the id attribute from your form tag has not double quotes and you forgot to close your tbody tag.
Then, we will start from there