Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/03/2007, 18:18
franco_r3
 
Fecha de Ingreso: febrero-2007
Ubicación: Valparaiso, Chile.
Mensajes: 39
Antigüedad: 17 años, 2 meses
Puntos: 0
Ayuda! Validacion De Datos De Formulario

saludos, tengo un formulario html, y necesito validar que al hacer click verifique que los dos campos de "atach" sean llenados y que solo permitan archivos con extension .doc (documento word). eso principalmente,
como cosa secundaria que obligatoriamente se llenen los campos con arterisco y que se ingrese un mail correcto.

me es urgente lo primero, si me pudieran ayudar se los agradeceria.
el codigo del formulario es el sigueinte:

Cita:

<FORM ACTION="procesa_prof.php" METHOD="POST" enctype="multipart/form-data" onSubmit="return valida(this);">
<P align="left"><strong>1) Ingrese sus datos: </strong></P>
<P align="left">Nombre(s):
<input type="text" name="nombre" size="50" value="">
* </P>
<p align="left">Apellido(s):
<input type="text" name="apellido" size="50" value="">
*
</P>

<p align="left">Cargo:
<input type="text" name="cargo" size="30" value="">
Organización:
<input type="text" name="organizacion" size="30" value="">
</P>

<p align="left">Direcci&oacute;n:
<input type="text" name="direccion" size="72" value="">
</P>

<p align="left">Tel&eacute;fono:
<input type="text" name="fono" size="15" value="">
Fax:
<input type="text" name="fax" size="15" value="">
</p>

<p align="left">E-mail:
<input type="text" name="email" size="30" value="">
*
</p>
<p align="left">Pa&iacute;s:

<SELECT NAME="pais">
<OPTION VALUE="Argentina">Argentina
<OPTION VALUE="Bolivia">Bolivia
<OPTION VALUE="Brasil">Brasil
<OPTION VALUE="Chile" SELECTED>Chile
<OPTION VALUE="Colombia">Colombia
<OPTION VALUE="Costa rica">Costa Rica
<OPTION VALUE="Ecuador">Ecuador
<OPTION VALUE="El salvador">El Salvador
<OPTION VALUE="Honduras">Honduras
<OPTION VALUE="México">México
<OPTION VALUE="Otro">Otro
<OPTION VALUE="Peru">Perú
<OPTION VALUE="Uruguay">Uruguay
<OPTION VALUE="Venezuela">Venezuela
</SELECT>

&nbsp;</p>
<p align="left"><strong>2) Adjunte su curr&iacute;culo:</strong>&nbsp;
<input type=file name="userfile">
*</p>
<p align="left"><strong>3) Adjunte su trabajo:</strong>
<input type=file name="userfile2">
&nbsp;*</p>
<p align="center">
<INPUT TYPE=submit NAME="submit" VALUE="Enviar datos">
&nbsp;
</FORM>