|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-06-06 10:16 UTC] marszhang at jite dot net
I wrote some codes like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<form action="test6.php" method="post" enctype="multipart/form-data">
Send these files:<br>
<input name="userfile[]" type="file"><br>
<input name="userfile[]" type="text"><br>
<input name="userfile[]" type="file"><br>
<input type="submit" value="Send files">
</form>
<?php
print_r($userfile);
?>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
But the output only had 2 elements :userfile[0],userfile[1]
,they were all file type. The text type had been lost.
I compiled php according to the INSTALL files.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 20:00:01 2025 UTC |
codes: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <form action="test6.php" method="post" enctype="multipart/form-data"> Send these files:<br> <input name="userfile[]" type="file"><br> <input name="userfile[]" type="text"><br> <input name="userfile[]" type="file"><br> <input type="submit" value="Send files"> </form> <?php print_r($userfile); ?> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ input: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ D:\zhangxg\06blue.gif test D:\zhangxg\07blue.gif ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ output: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Array ( [0] => /tmp/phpNqcZb2 [1] => /tmp/phpFR7rHQ )