Multiple files can be uploaded using different
name for input.
It is also possible to upload multiple files simultaneously and
have the information organized automatically in arrays for you. To
do so, you need to use the same array submission syntax in the
HTML form as you do with multiple selects and checkboxes:
When the above form is submitted, the arrays
$_FILES['userfile'],
$_FILES['userfile']['name'], and
$_FILES['userfile']['size'] will be
initialized (as well as in $HTTP_POST_FILES for PHP versions prior
to 4.1.0).
When
register_globals is on, globals for uploaded
files are also initialized. Each of these will be a numerically
indexed array of the appropriate values for the submitted files.