Home >Backend Development >PHP Tutorial >upload有关问题,不知道错哪了

upload有关问题,不知道错哪了

WBOY
WBOYOriginal
2016-06-13 10:09:00972browse

upload问题,不知道哪里错了。
upload.html

HTML code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->            <title>upload</title>    


upload.php
PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?php echo '<pre class="brush:php;toolbar:false">';    print_r($_POST);    print_r($_FILES);    echo '
'; ?>


------------------------

结果:

Array
(
  [pic] => D:\Documents\www\示例图片_01.jpg
  [sub] => upload
)
Array
(
)

问,为什么$_FILES是个空数组啊?

------解决方案--------------------
恭喜发财.
------解决方案--------------------
分数拿来~·


------解决方案--------------------
粗心。。。要知道细心是上帝
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn