Ver Mensaje Individual
  #8 (permalink)  
Antiguo 04/07/2002, 14:47
jpalbox
 
Fecha de Ingreso: abril-2002
Mensajes: 432
Antigüedad: 22 años, 10 meses
Puntos: 0
Re: validar febrero, abril, etc.

de la division
if (form.diai.value >29){
alert( "Fecha Incorrecta; El mes de Febrero tine menos de 30 días." )
form.diai.focus();
return false;
} else if ((resto != 0) && (form.diai.value >28)) {
alert( "Mes de febrero con 28 días, no con 29." )
form.diai.focus();
return false;

}
}else

if (form.usuario.value == "") {
alert( "Por favor, rellena el campo Usuario/Socio." );
form.usuario.focus();
return false ;
}else if (form.password.value == "") {
alert( "Por favor, rellena el campo Contraseña." );
form.password.focus();
return false ;
}
return true ;
}
//-->

</script>


<form action="altas.asp" METHOD="post" onsubmit="return informacion(this);">
<div><div align="center"><center><tabl e border="0" cellpadding="0" width="750"
height="252" cellspacing="0">
<tr>
<td height="6" width="780" valign="top" align="left">  <div align="center"><center><tabl e
border="0" cellpadding="0" width="750" cellspacing="0">
<tr>
<td height="40" width="83"><font face="Verdana" size="1">Fecha Alta:</font></td>
<td height="40" width="206"><font face="Verdana" size="1"><select name="diai" size="1">
<option selected="Día">Día</option>
resto del formulario

boton submit

Suerte ;) [email protected]