I'm going to approach this question in a different way, in case some 
people were put off by the complexity of it yesterday.

For all those who don't know my question from yesterday, I have a form 
where I can upload up to 9 files at a time. Unfortunately, only the 
first 5 of those files are being uploaded at any given time.

As a test, I just created a simple form with only input type 'file's, 
and attempted to find out how many its attempting to parse. It is still 
only 5.

I have posted the full code below so people might be able to try it on 
their own systems... please let me know what you might find:

---------------- loop-test.php ---------

<?

if (isset($_GET['action']))
   $action = $_GET['action'];

while(list($key,$val)=each($_POST))
{
   $$key = $val;
}

?>

<html>
<head>
<title>File Loop Test</title>
</head>
<body>

<?php

if ($action == "add") {

$current = 0;

while (list($key) = each($_FILES['picname'])) {

   echo $current;
   $current++;
}

} else { // Default
?>
<form enctype="multipart/form-data" method=post name="slAdd" 
action="?action=add">
<input type="hidden" name="MAX_FILE_SIZE" value="10000000">

<input type=submit name="submit_button" value="Add">

<br><hr>
<table width="70%">
<tr>
<td><input type="file" name="picname[0]"></td>
<td><input type="file" name="picname[1]"></td>
<td><input type="file" name="picname[2]"></td>
</tr><tr>
<td><input type="file" name="picname[3]"></td>
<td><input type="file" name="picname[4]"></td>
<td><input type="file" name="picname[5]"></td>
</tr><tr>
<td><input type="file" name="picname[6]"></td>
<td><input type="file" name="picname[7]"></td>
<td><input type="file" name="picname[8]"></td>
</tr>

</table>
</form>

<? } ?>

</body>
</html>

--------- End Code ---------

Thanks for everyone's time on this!
--Jason


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to