Hola de nuevo JavierB.
Te cuento que el codigo que me enviaste no me sirvió, no sé si fué que lo copie donde no era, te lo envio completo:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Documento sin título</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<script>
function validar(obj) {
for(i=0;i<obj.elements.length;i++)
if (obj.elements[i].type=="checkbox")
if (obj.elements[i].checked)
return true;
return false;
}
</script>
<form action="mailto:fulano@fulano.com" method="post" onsubmit="return validar(this);">
<p>
<input type="checkbox" name="deportes" value="futbol">
Futbol
<input type="checkbox" name="deportes" value="baloncesto">
Baloncesto
<input type="checkbox" name="deportes" value="atletismo">
Atletismo</p>
<p> <input type="submit" name="Submit" value="Enviar"></p>
</form>
</body>
</html>
Gracias por tu ayuda.
__________________ Mario.
SOMOS ESCLAVOS DE NUESTRO PROPIO FUTURO. |