Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/02/2013, 02:36
Avatar de insyse
insyse
 
Fecha de Ingreso: abril-2005
Ubicación: Colombia
Mensajes: 206
Antigüedad: 19 años
Puntos: 5
Respuesta: ¿Como poner imagen cargar en upload en php?

Mira, yo creo que lo que buscas es algo como esto...

es un JS que muestra un gif solo cuando haces clic en el boton enviar.

Código HTML:
<!doctype html>
<html>
<head>

<script language="JavaScript" type="text/javascript">
function enviar( pagina ){
 document.getElementById('preload').style.display = '';
 document.formulario.Enviar.disabled = true;
}
</script>

</head>

<body>

<form name="formulario" id="formulario" action="subearchivo.php" method="post" enctype="multipart/form-data"> 
<p>
Seleccione el archivo 
</p>
<P>
<input name="userfile" type="file"> 
<br>
<img src="img/preloader.gif" id="preload"  style="display:none;" align="left" />
<br> 
<input type="submit" value="Enviar" onclick="enviar()"> 
</p>
</form> 
</body>
</html> 
__________________
.................................................. ...........................
No todos nacemos aprendidos !