Ver Mensaje Individual
  #8 (permalink)  
Antiguo 03/10/2006, 12:14
Avatar de 8461277
8461277
 
Fecha de Ingreso: diciembre-2002
Ubicación: san juan de los morros
Mensajes: 887
Antigüedad: 21 años, 4 meses
Puntos: 1
Gracias cluster lei lo que me diste y agarre para estudiar este codigo

Código PHP:
<html>
<head>
<title>HTML Form for uploading image to server</title>
</head>
<body>
<form action="subir_imagen.php" method="post" enctype="multipart/form-data">
<p>Pictures:
<input type="file" name="pictures[]" /><BR>
<input type="file" name="pictures[]" /><BR>
<input type="file" name="pictures[]" /><BR>
<input type="submit" value="Send" />
</p>
</form>
<?php
//places files into same dir as form resides
foreach ($_FILES["pictures"]["error"] as $key => $error) {
   if (
$error == UPLOAD_ERR_OK) {
       echo
"$error_codes[$error]";
       
move_uploaded_file(
         
$_FILES["pictures"]["tmp_name"][$key], 
         
$_FILES["pictures"]["name"][$key
       ) or die(
"Problems with upload");
   }
}
?>
</body>
</html>

pero no entiendo donde va el directorio donde sera colocado las imagenes
__________________
Miguel Padrón :cool: