Jump to content

php loop


Recommended Posts

how would i loop the below script so that more than one file can be uploaded. my form lets you select more than one image but i am not sure how to loop the below.

   if( isset($_POST['submit']) ) {

    $userfile = $_FILES['uploaded_image']['name'];
    $file_size = $_FILES['uploaded_image']['size'];
    $file_temp = $_FILES['uploaded_image']['tmp_name'];
    $file_err = $_FILES['uploaded_image']['error'];
$folder = $_POST['folder'];
    $path = "../../gallery/gallery_files/gallery/$folder/";
$path1 = "../../gallery/gallery_files/gallery/$folder/thumbnails/";

    $image = new SimpleImage();
   } else {

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.