Ver Mensaje Individual
  #4 (permalink)  
Antiguo 18/06/2010, 02:13
rakelcita
 
Fecha de Ingreso: abril-2008
Mensajes: 15
Antigüedad: 16 años
Puntos: 0
Respuesta: limpiar un campo al darle al botón enviar

Cita:
Iniciado por apuu Ver Mensaje
Código HTML:
<input type="submit" value="Enviar" OnClick="setTimeout('document.formulario.reset()',2000)" /> 
Hola Apuu, he probado lo que me has dicho, y no hace nada. Esto es lo que he puesto en el código:

Código PHP:
echo "<form name=enviado action='' method=post >";
echo 
"Subscríbete a nuestro boletín de novedades. <input type=text name='email' value='$_POST[email]' size=30><input type=submit name=enviar value=Enviar OnClick=setTimeout('document.enviado.reset()',2000)>";
echo 
"</form>"