I have a form that uses links in a table to execute the submit. The submit calls a procedure that needs to be passed the value of the link. I think I need to use the onSubmit to populate a hiiden input field with the value of the link. How do you set a hidden field the value of the link?
<html>
<form name="add_class_to_schedule" onSubmit="fillFields2(this)" action="stars3.star_portal.add_class_to_schedule" method="post">
<table border="0" cellspacing=0 cellpadding=2 id="class_mast">
<thead>
<tr>
<th BGCOLOR="#000063" nowrap align="left"><font CLASS="PortletText1" COLOR="WHITE">Class-Sec</font></th>
</tr>
</thead
<TBODY>
<tr>
<td><a href="javascript:void(document.add_class_to_schedule.submit())">109-001</a></td>
</tr>
<tr BGCOLOR=#BBBBBB>
<td><a href="javascript:void(document.add_class_to_schedule.submit())">109-002</a></td>
</tr>
<tr>
<td><a href="javascript:void(document.add_class_to_schedule.submit())">109-004</a></td>
</tr>
<tr><td ALIGN="CENTER"><input type="hidden" name="p_action" value="Submit">
</table>
</form>
</body></html>
<html>
<form name="add_class_to_schedule" onSubmit="fillFields2(this)" action="stars3.star_portal.add_class_to_schedule" method="post">
<table border="0" cellspacing=0 cellpadding=2 id="class_mast">
<thead>
<tr>
<th BGCOLOR="#000063" nowrap align="left"><font CLASS="PortletText1" COLOR="WHITE">Class-Sec</font></th>
</tr>
</thead
<TBODY>
<tr>
<td><a href="javascript:void(document.add_class_to_schedule.submit())">109-001</a></td>
</tr>
<tr BGCOLOR=#BBBBBB>
<td><a href="javascript:void(document.add_class_to_schedule.submit())">109-002</a></td>
</tr>
<tr>
<td><a href="javascript:void(document.add_class_to_schedule.submit())">109-004</a></td>
</tr>
<tr><td ALIGN="CENTER"><input type="hidden" name="p_action" value="Submit">
</table>
</form>
</body></html>