I have several input fields for uploading files:
<input type=file name=logo />
<input type=file name=userfile />
<input type=file name=userfile1 />
.
.
.
<input type=file name=top />
<input type=file name=bottom />
Every file needs to be treated in some different way. How can I check if $_FILES starts, for example, with userfile?
If you have mroe userfiles you can change your html marqup to
And then in PHP
Othervise you can check if name starts with expected string (http://php.net/manual/en/function.substr.php)