Ver Mensaje Individual
  #12 (permalink)  
Antiguo 23/08/2005, 10:27
Avatar de claudiovega
claudiovega
 
Fecha de Ingreso: octubre-2003
Ubicación: Puerto Montt
Mensajes: 3.667
Antigüedad: 20 años, 6 meses
Puntos: 11
Prueba esto:

Código PHP:
<body>
<form method="post" action="ArchivosPrueba.php" enctype="multipart/form-data" name="form1">
<?php if (!$_POST['Enviar']) {?>//MUESTRO EL FORMULARIO..

<input type="hidden" name="MAX_FILE_SIZE" value="204800">
<table width="300" border="1" align="center">
<tr>
<td>Archivo:
<input type="file" name="archivo" ></td>
</tr>
<tr>
<td><input type="submit" name="Enviar" value="Enviar"></td>
</tr>
</table>
</form>
<?PHP }else{
//SUBO EL ARCHIVO.......

$miarchivotmp=$_FILES['archivo']['tmp_name'];

$miarchivo=$_FILES['archivo']['name'];
move_uploaded_file($miarchivotmp$miarchivo);

}
?>

</body>