Ver Mensaje Individual
  #8 (permalink)  
Antiguo 15/03/2006, 17:27
-thor-
 
Fecha de Ingreso: febrero-2006
Mensajes: 446
Antigüedad: 18 años, 2 meses
Puntos: 3
caricatos gracias por la ayuda,ahora ya me funciona bien.
Código:
<html>
<title>pagina</title>
<head>
<script>
function alMenosUno(a, b, c)
{
vale = ((a != "") || (b != "") || (c != ""));
if (vale)
{
return true;
 }else
 {
         alert('debe ingresar en al menos uno');
         return vale;
         }
}
</script>
</head>
<body>


<form name=formulario action=pagina.php method=post onsubmit="return alMenosUno(fichas_azules.value,fichas_verdes.value, fichas_rojas.value)">
<INPUT type="text" name="fichas_azules"  size="5" maxlength="6"
onKeyPress="return acceptNumNumero(event)">&nbsp;
<INPUT type="submit" name="ficha" value="ingreso_ficha">

<INPUT type="text" name="fichas_rojas"  size="5" maxlength="6"
onKeyPress="return acceptNumNumero(event)">&nbsp;
<INPUT type="submit" name="ficha1" value="ingreso_ficha1">

<INPUT type="text" name="fichas_verdes"  size="5" maxlength="6"
onKeyPress="return acceptNumNumero(event)">&nbsp;
<INPUT type="submit" name="ficha2" value="ingreso_ficha2">
</form>
</body>
</html>