Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/03/2006, 15:42
-thor-
 
Fecha de Ingreso: febrero-2006
Mensajes: 446
Antigüedad: 18 años, 3 meses
Puntos: 3
Validar submit

hola,mi pagina tiene 3 submit,pero al momento de ingresar informacion,no es necesario hacerlo con los tres submit,en donde cada caja de texto pertenece a un submit.

Yo quiero que al momento de ingresar la informacion,obligue al usuario como minimo a ingresar algo en una de las tres cajas de texto,y dejando en blanco las otras dos.

¿Como puedo obligar al usuario a ingresar informacion,por lo menos en una caja de texto?
gracias

Código:
<html>
<form name=formulario action=pagina.php method=post>

<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>
</html>