I just need to ask.
Does:
basename($_FILES['file']['tmp_name']);
... and:
basename($_FILES['file']['name']);
... ultimately return the same thing?
Also, it looks to me like the input (file type) element can only hold one file:
<input type='file' name='userfile[]'>
<input type='file' name='userfile[]'>
<input type='file' name='userfile[]'>
.... judging by the illustration code you sent me earlier (extract above) in the post.
Is there no way of only using one input element and selecting multiple files (images) when the browse window pops up (instead of having to use multiple 'input elements' for each individual image I want to upload)?