Bug #11309 Updated: upload file
| From: | marszhang at jite dot net | Date: | Wed, 13 Jun 2001 07:02:06 +0000 |
| Subject: | Bug #11309 Updated: upload file | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56739@lists.php.net to get a copy of this message | ||
ID: 11309
User Update by: marszhang@jite.net
Status: Bogus
Bug Type: HTTP related
Operating system: redhat linux7.0
PHP Version: 4.0.5
Description: upload file
But I used this script in php4.0.2,it's OK!
Previous Comments:
---------------------------------------------------------------------------
[2001-06-06 13:06:22] sniper@php.net
This is not bug in PHP but bug in your script.
Do not mix different types into same array.
--Jan
---------------------------------------------------------------------------
[2001-06-06 10:33:20] marszhang@jite.net
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