Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/03/2008, 18:47
KingColt
 
Fecha de Ingreso: febrero-2008
Mensajes: 303
Antigüedad: 16 años, 2 meses
Puntos: 2
Previsualizar imagenes con php

Quiero que al cargar una imagen con un campo type="file" se cargue la imagen debajo de mi formulario antes de subirla al servidor, de que manera solucionan ustedes ese problema o mejor dicho cual es la forma correcta de hacerlo.
Código PHP:
<form name="formulario" method="post" action="ingresoProductoProceso.php">
  <
table width="427" border="1" cellpadding="0" cellspacing="0">
    <
tr
      <
td width="103">Nombre</td>
      <
td width="308"><input type="text" name="nomprod" size="50" maxlength="50"></td>
    </
tr>
    <
tr
      <
td width="103">Foto</td>
      <
td width="308"><input type="file" name="file"></td>
    </
tr>
    <
tr
      <
td colspan="2" align="center">
        <
input type="submit" name="grabar" value="Grabar">
        <
input type="reset" name="reset" value="Limpiar">
      </
td>
    </
tr>
  </
table>
</
form