|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-03-03 14:58 UTC] sas at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 00:00:01 2025 UTC |
okay, so I have this, which works: ======================================================================== <form enctype="multipart/form-data" method="post" action="<?php echo $PHP_SELF ?>"> <p><input name="image" type="file"> <p><input type="submit" name="submit" value="Upload"> </form> <?php if ($submit) { echo "temp file: " .$image."<br>\n"; echo "file name: " .$image_name."<br>\n"; echo "file size: " .$image_size."<br>\n"; echo "file type: " .$image_type."<br>\n"; } ?> ======================================================================== but this doesn't: ======================================================================== <form enctype="multipart/form-data" method="post" action="<?php echo $PHP_SELF ?>"> <p><input name="image[1]" type="file"> <p><input type="submit" name="submit" value="Upload"> </form> <?php if ($submit) { echo "temp file: " .$image[1]."<br>\n"; echo "file name: " .$image_name[1]."<br>\n"; echo "file size: " .$image_size[1]."<br>\n"; echo "file type: " .$image_type[1]."<br>\n"; } ?> ======================================================================== the only difference is image[1] instead of image.