$error) to Circular judgment"/> $error) to Circular judgment">
Home > Article > Backend Development > PHP simple file and image batch upload program code_PHP tutorial
The batch upload method is also very simple. We only need to add a name="pictures[]" array to the form, and then use foreach ($_FILES["pictures"]["error"] as $key => $error ) Loop through the array and then use move_uploaded_file($tmp_name, $uploadfile); to upload the file.
html code
The code is as follows
|
Copy code
|
||||
|