Un saludos todos tengo un problema en un formulario de registro en donde el usuario debe tildar o seleccionar por lo menos uno de los campo lo que pasa es que aveces suele olvidarse de seccionarlo y me tiene que validar o dar un mensaje de que tiene que seleccionar por lo menos uno de las casillas, he utilizados varios que java que aqui aparece y no voy a negar que no funcionan si funcionan y muy bien pero el problemas que es cada casilla tiene un nombre y valor diferente aquí le dejo el formulario espero me puedan recomendar algún java:
Código PHP:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Pagina nueva 1</title>
</head>
<body>
<form method="POST" action="registro.php" name="loginForm">
<table border="0" width="100%" id="table1" cellspacing="1">
<tr>
<td><font size="3">
<input type="checkbox" name="T1" value="I TRIMESTRE"></font><b><font face="Tahoma">
I Trimestre</font></b></td>
</tr>
<tr>
<td><font size="3">
<input type="checkbox" name="T2" value="II TRIMESTRE"></font><b><font face="Tahoma">
II Trimestre</font></b></td>
</tr>
<tr>
<td><font size="3">
<input type="checkbox" name="T3" value="III TRIMESTRE"></font><b><font face="Tahoma">
III Trimestre</font></b></td>
</tr>
<tr>
<td><font size="3">
<input type="checkbox" name="T4" value="IV TRIMESTRE"></font><b><font face="Tahoma">
IV Trimestre</font></b></td>
</tr>
</table>
<p><input type="submit" value="Enviar" name="B1"></p>
</form>
</body>
</html>