Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/04/2007, 08:37
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 3 meses
Puntos: 772
Re: Radio O Check

Hola HMSJUAN

Si te refieres a validar que haya uno marcado, puedes usar esto:

Código PHP:
<html>
<
head>
<
script type="text/javascript">
function 
validar(frm) {
  for (
i=0i<2i++)
    if (
frm.sexo[i].checked) return
  return 
false
}
</script>
</head>
<body>
<form onsubmit = "return validar(this)">
<input type="radio" name="sexo" value="M">Masculino
<input type="radio" name="sexo" value="F" >Femenino
<input type="submit" />
</form>
</body>
</html> 
Saludos,