Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/10/2009, 06:40
Avatar de gjx2
gjx2
 
Fecha de Ingreso: agosto-2008
Ubicación: R.D
Mensajes: 1.153
Antigüedad: 16 años, 7 meses
Puntos: 139
Respuesta: desabilitar submit y enviar formulario a la VEZ!

Intenta esto


Código HTML:
Ver original
  1. <script>    
  2.       function checkSubmit() {
  3.           document.getElementById("subir").value = "Enviando...";
  4.           document.getElementById("subir").disabled = true;
  5.           submit();
  6.           return true;
  7.       }
  8. </script>
  9.  
  10. <form name="form1" method="post" action="subiendo.php" onsubmit=" return checkSubmit()">
  11.     <b>Campo de tipo texto:</b>
  12.     <br>
  13.     <input type="text" name="cadenatexto" size="20" maxlength="100">
  14.     <input type="hidden" name="MAX_FILE_SIZE" value="200000000">
  15.     <br>
  16.     <br>
  17.     <b>Enviar un nuevo archivo: </b>
  18.     <br>
  19.     <input name="userfile" type="file">
  20.     <br>
  21.     <input name="subir" type="submit" id="subir" value="Enviar">
  22. </form>