Re: Uploading more than one file
| From: | tg-php at gryffyndevelopment dot com | Date: | Mon, 21 Nov 2005 16:31:34 +0000 |
| Subject: | Re: Uploading more than one file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-226210@lists.php.net to get a copy of this message | ||
Sorry, my brain's running on one cylinder this morning, but maybe this helps:
http://us2.php.net/manual/en/features.file-upload.multiple.php
If not, excuse my waste of bandwidth :)
-TG
= = = Original message = = =
Hi,
I have a form on my page that has many file input fields:
<tr>
<td>File A:</td>
<td><input type="file" name="file_a"></td>
</tr>
<tr>
<td>File B:</td>
<td><input type="file" name="file_b"></td>
</tr>
...
I have looked on php.net and there is a way to upload an array of files but
one would need to make the name of all the input fields are the same. I need
to make sure that the file uploaded is correct by comparing the file name to
the value requried by the form field name. Is there a way around this?
Thanks for your help.
Shaun
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.