
24/06/2008, 15:11
|
| | Fecha de Ingreso: junio-2008 Ubicación: CABA
Mensajes: 11
Antigüedad: 16 años, 8 meses Puntos: 1 | |
subir imagen hola gente.
estoy probando a subir imagenes a un servidor.
la cuestión es que si el formulario solo contiene el tipo file y el submit sube la imagen lo mas bien, el problema es cuando al formulario le agrego algún campo texto deja de subir la imagen pero los textos si son enviados.
ANDA
echo "<form name='form1' method='post' action='aagregar.php' enctype='multipart/form-data'>";
echo "<input type='file' name='imagen'/> (la foto)<br>";
echo "<input type='submit' name='Submit' value='CREAR'>";
echo "</form>";
NO ANDA
echo "<form name='form1' method='post' action='aagregar.php' enctype='multipart/form-data'>";
echo"<input type='text' name='categoria' value='".$_GET['op']."'readonly><br>";
echo "<input type='text' name='nombre'>nombre<br>";
echo "<input type='text' name='precio1'>precio<br>";
echo "<input type='text' name='precio5'>precio x 5<br>";
echo "<textarea name='descripcion' style='height: 150px; width: 150px;'></textarea>descripcion (max 200)<br>";
echo "<input type='file' name='imagen'/> (la foto)<br>";
echo "<input type='submit' name='Submit' value='CREAR'>";
echo "</form>";
desde ya gracias. |