+ 3

Multiple upload PHP!

As PHP is awesome language I'm asking for help of experienced PHP -developers how to make a multiple upload files in array.... I have my upload.php as follows: include ("config.php"); include ("functions.php"); $result = ImageUpload($_FILES['userfile']['tmp_name'], $_FILES['userfile']['name']); if ($result === false){ echo 'Loading fails!'; } //Markup <div id="source_image"> <div class="title_image">Source image</div> <img src="<?=$result[0]?>" /> </div> <div id="watermark_image"> <div class="title_image">Watermark image</div> <img src="<?=$result[1]?>" /> </div> In action.php i use form: <form enctype="multipart/form-data" action="upload.php" method="post"> Please upload your image: <input name="userfile" type="file"> <input type="submit" value=""> </form> The problem is that I simply want to click browse button and upload as many files as I want or I have to make multiple inputs for each file ? Thank's so much!

9th Jun 2017, 11:47 AM
Val🐯
Val🐯 - avatar
1 Antwort
+ 10
Try and go through this link below to be sure it is what you want. http://www.uploadify.com/
9th Jun 2017, 12:03 PM
Awele Omeligwe
Awele Omeligwe - avatar