Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/01/2005, 12:20
Avatar de ludovico2000
ludovico2000
 
Fecha de Ingreso: noviembre-2003
Ubicación: Bizkaia
Mensajes: 1.315
Antigüedad: 20 años, 5 meses
Puntos: 2
Ejemplo de formulario que responde a mail

Con este tipo de formulario, al darle al botón te llegará un mail a [email protected] del tipo:

"Nombre:loquehayapuestoelvisitante
Apellidos:loquehayapuestoelvisitante"
etc etc

La primera función javascript que ves es para que primero se envíe el formulario y acto seguido se quede limpio.

<script language=JavaScript>
function confirma(){
form1.submit();
form1.reset();
}
</script>

<form name="form1" method="post" action="mailto:[email protected]" enctype="text/plain">
<fieldset>
<legend><b>Datos Personales:</b></legend>
<table border="0" width="93%">
<tr>
<td width="32%">Nombre:</td>
<td width="68%"><input type="text" name="Nombre"></td>
</tr>
<tr>
<td width="32%">Apellidos:
</td>
<td width="68%"><input type="text" name="Apellidos"></td>
</tr>
<tr>
<td width="32%">Teléfono:</td>
<td width="68%"><input type="text" name="Teléfono" size="20"></td>
</tr>
</fieldset>

<input type="submit" onClick="confirma();return false" value="Enviar">
<INPUT TYPE="reset" value="Limpiar" name="Restablecer">

COMPARTIENDO, MEJORAMOS TODOS