|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-06-10 08:35 UTC] brian at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 20:00:01 2025 UTC |
<form action="<? echo $PHP_SELF; ?>" method="post" enctype="multipart/form-data"> <input type="file" name="thefile[]"> <input type="file" name="thefile[]"> <input type="submit"> </form> <? while (list($key, $val) = each($HTTP_POST_VARS)) { echo "$key: $val<BR>\n"; } ?> If you run this, you expect to get: thefile: Array There are 2 bugs at work here. The first is that ANY "FILE" doesn't get added to the HTTP_POST_VARS array (although it should be). And, "FILE" arrays don't get defined at all. I imagine that this is not too difficult a bug to fix... maybe I'll muck around and see what I can find... -brian-