hi i am trying to create a form where user selects either am or pm sessions for each day of the week except Monday where only am is available.
my code is currently:
<table border="0" id="EnrollPreSes">
<tr>
<td>Day</td>
<td>AM <br/> 8:30 - 11:30 </td>
<td>PM <br/> 12:00 - 3:00</td>
</tr>
<tr>
<td>Monday</td>
<td><input type="checkbox" name="Prefses[]" id="mam" value="MonAM"></td>
<td></td>
</tr>
<tr>
<td>Tuesday</td>
<td>
<input type="radio" name="Prefses" value="TueAM">
</td>
<td>
<input type="radio" name="Prefses" value="TuePM">
</td>
</tr>
<tr>
<td>Wednesday</td>
<td>
<input type="radio" name="Prefses" value="WedAM">
</td>
<td>
<input type="radio" name="Prefses" value="WedPM">
</td>
</tr>
</table>
and so on for the rest of the week, is there a way to allow only an am or pm slot for each day to be selected and then be sent to my php script as an array?
Give each rows radio buttons the same name, jsFiddle here:
http://jsfiddle.net/QTCy2/8/