Ver Mensaje Individual
  #9 (permalink)  
Antiguo 01/01/2012, 19:46
jmabreu
 
Fecha de Ingreso: julio-2010
Mensajes: 197
Antigüedad: 13 años, 10 meses
Puntos: 32
Respuesta: Subir archivo

en el form action lo reemplazaras por como se llama tu archivo

y listo no es complicado de entender espero que te sirva







<span class="style1">Tamaño maximo Permitido 1.99 MB</span><br />
estado de la tranferencia<span class="style1">
<?php if(!empty($error)){echo 'Error: este formato no es permitido';}elseif(!empty($respuesta)){echo 'Su archivo se ha enviado exitosamente';}else{echo '';}?>
</span><br />
<form action="pagina.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
<label for="imagen"></label>
<table width="50%" border="0" align="center">
<tr>
<td width="50%"><div align="center" class="style1">1. Seleccione la imagen
<input name="imagen" type="file" class="style21" id="imagen" />
</div></td>
</tr>
<tr>
<td><div align="center"><span class="style1">2. Nombre de la imagen</span>
<input name="tipo" type="text" id="tipo" size="40" maxlength="99" />
</div></td>
</tr>
<tr>
<td><div align="center"><span class="style1">3. usuario
<label>
<input type="text" name="nombre" id="nombre" />
</label>
</span></div></td>
</tr>
<tr>
<td><div align="center" class="enviar">
<input type="submit" name="button" id="button" value="Submit" />
</div></td>
</tr>
</table>
</form>