I try to be more specific, the first try was not that.
I'd like to upload 3 images with php. I need all file data (name, size, tmp_name, type) and also the name of the current input field after form submit.
<input type="file" name="thisisaname"...>
<input type="file" name="thisisanothername"...>
<input type="file" name="thethirdname"...>
I'd need the ImageInputname in my foreach:
foreach($_FILES as $file)
{
$ImageName = $file['name'];
$ImageSize = $file['size'];
$TempSrc = $file['tmp_name'];
$ImageType = $file['type'];
$ImageInputName = ???
...
}
What is the easiest way to get the input name?