sophielois
Technical User
Hello,
i have very little knowledge of javascript but need a little for a form im using. can anyone help??
I need to limit people from only being able to check 2 check boxes.
here is the code for the form im using
Thank you for any advice that anybody can give me.
Sophx
i have very little knowledge of javascript but need a little for a form im using. can anyone help??
I need to limit people from only being able to check 2 check boxes.
here is the code for the form im using
Code:
<form action="add3.php" method="post" onsubmit="return check(this)">
<table width="610" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="27" height="27"> <input type="checkbox" name="hsc25" value="yes"></td>
<td width="193">HSC25</td>
<td width="29"><input type="checkbox" name="hsc221" value="yes"></td>
<td width="180">HSC221</td>
<td width="26"><input type="checkbox" name="hsc223" value="yes"></td>
<td width="155">HSC223</td>
</tr>
<tr>
<td height="34">
<input type="checkbox" name="hsc210" value="yes"></td>
<td>HSC210</td>
<td><input type="checkbox" name="hsc218" value="yes"></td>
<td>HSC218</td>
<td><input type="checkbox" name="hsc21314" value="yes"></td>
<td>HSC213-14</td>
</tr>
<tr>
<td><input type="checkbox" name="hsc226" value="yes"></td>
<td>HSC226</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
<input type="hidden" name="userid" value="<?= $userid ?>">
<input type="submit" name="add" value="Proceed">
</form>
Thank you for any advice that anybody can give me.
Sophx