I have a form that accepts a radio field and a select (multiple) box field and processes a function. When the user hits the go, I need to populate some hidden fields (p_hidden_period) based on the values of the radio and select fields. What is the best way to do this? Here is my code:
<html>
<form name="maint_student_schedule" action="stars3.star_portal.process_student_schedule" method="post">
<table ALIGN="LEFT"><br><tr>
<td ALIGN="CENTER"> <font CLASS="PortletText1">
<input type="radio" NAME="p_sched_type" id="sched_type1" VALUE="ADD" Checked> Add  
</td>
<td ALIGN="CENTER"> <font CLASS="PortletText1">
<input type="radio" NAME="p_sched_type" id="sched_type2" VALUE="DEL" > Drop  
</td>
<td ALIGN="RIGHT"> <font CLASS="PortletText1">
<input type="radio" NAME="p_sched_type" id="sched_type3" VALUE="CHG" > Change  
</td>
<td ALIGN="RIGHT"> <font CLASS="PortletText1">
<select name="p_filter_period" id="sched_choice1" SIZE="3" MULTIPLE>
<option value=01>01   (07:00-08:44)
<option value=02>02   (08:45-09:25)
<option value=03>03   (09:25-10:10)
</select>
<input type="hidden" name="p_hidden_period" value="ALL">
</td>
<td ALIGN="CENTER"><input type="submit" name="p_action" value="Go">
</td>
</tr>
</table>
</form>
</html>
<html>
<form name="maint_student_schedule" action="stars3.star_portal.process_student_schedule" method="post">
<table ALIGN="LEFT"><br><tr>
<td ALIGN="CENTER"> <font CLASS="PortletText1">
<input type="radio" NAME="p_sched_type" id="sched_type1" VALUE="ADD" Checked> Add  
</td>
<td ALIGN="CENTER"> <font CLASS="PortletText1">
<input type="radio" NAME="p_sched_type" id="sched_type2" VALUE="DEL" > Drop  
</td>
<td ALIGN="RIGHT"> <font CLASS="PortletText1">
<input type="radio" NAME="p_sched_type" id="sched_type3" VALUE="CHG" > Change  
</td>
<td ALIGN="RIGHT"> <font CLASS="PortletText1">
<select name="p_filter_period" id="sched_choice1" SIZE="3" MULTIPLE>
<option value=01>01   (07:00-08:44)
<option value=02>02   (08:45-09:25)
<option value=03>03   (09:25-10:10)
</select>
<input type="hidden" name="p_hidden_period" value="ALL">
</td>
<td ALIGN="CENTER"><input type="submit" name="p_action" value="Go">
</td>
</tr>
</table>
</form>
</html>