Código PHP:
   <?php
$ruta1= "images/".$_FILES['fichero1']['name']; 
$ruta2= "images/".$_FILES['fichero2']['name']; 
           move_uploaded_file($_FILES['fichero1']['tmp_name'], $ruta1); 
           move_uploaded_file($_FILES['fichero2']['tmp_name'], $ruta2);
               echo "<b>Upload exitoso!. Datos:</b><br>";
              printf("Foto1: <i><a href=$ruta1 target=_blank><img src=$ruta1 width=50 height=37></a></i><br>");
              printf("Foto2: <i><a href=$ruta2 target=_blank><img scr=$ruta2 width=50 height=37></a></i><br>");
            echo "<br><hr><br>";
// A continuación el formulario
?>
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post" enctype="multipart/form-data">
     
    Subir Fotos:</a><table border="0" width="24%" id="table1">
            <tr><td width="240"><input type="file" name="fichero1"></td></tr>
            <tr><td width="240"><input type="file" name="fichero2"></td></tr>
        </table>
    <p><input name="submit" type="submit" value="Upload!"></p>
</form>   
 
