When I click the hyperlink in events.asp (which calls submit.asp),...
No, the hyperlink calls "test5.asp".
And that first set of code can't possibly be real. You have LOOP
statement but there is no corresponding WHILE
Your HTML isn't close to legal. You have <font> tags with no matching </font>s. And <font> is obsolete, in any case.
And what is the point of
<input id="kpname" name="kpname" ...
when there is no <form> to contain it and it is not used at all? Why use an <input> instead of just putting the text directly in the <td>??