I have a form with several inputs.
<input name="file1" type="file" ...>
<input name="file2" type="file" ...> etc
When I handle the uploads in PHP, I want to be able to loop over all the $_FILES for each file.
I tried this
for($i = 1; $i <= $no_upload_files; $i++)
$file_no = sprintf("file%d", $i);
$fileName = $_FILES[$file_no]['name'];
$tmpName = $_FILES[$file_no]['tmp_name'];
but it doesn't work.
What am I doing wrong? Is it possible even?