Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/11/2011, 15:26
Maru77
 
Fecha de Ingreso: agosto-2003
Mensajes: 524
Antigüedad: 21 años, 7 meses
Puntos: 5
Respuesta: Subir 2 imágenes

Encontré este ejemplo

Código HTML:
<input type="file" name="file1[]" />
<input type="file" name="file2[]" /> 
Código PHP:
 $target $_POST['path'];
   
$fileone $_FILES['file1']['name'];
   
$filetwo $_FILES['file2']['name'];
   
$Tdate date('dFY');
   
$path"upload/".$Tdate."/".basename($_FILES['upload']['name']) ;
   if(
move_uploaded_file($_FILES['uploaded']['tmp_name'],$destfile))
        {
 
            echo 
"copied succesfully to ".$destfile."<br/>";
        }
            else
        {
            echo 
"failed to copy<br/>";
        } 
Pero me sale el siguiente error:

Notice: Undefined index: path in C:\wamp\www\impacto\admin\ingresarpintura.php on line 62

Notice: Undefined index: file1 in C:\wamp\www\miweb\ingresar.php on line 63

Notice: Undefined index: file2 in C:\wamp\www\miweb\ingresar.php on line 64

Notice: Undefined index: upload in C:\wamp\www\miweb\ingresar.php on line 66

Notice: Undefined index: uploaded in C:\wamp\www\miweb\ingresar.php on line 67


failed to copy


no se como instertarlas dentro de la tabla.
Alguna ayudita?
__________________
Saludos!!!
Maru.-