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

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

WBOY
Release: 2016-06-13 13:46:20
Original
857 people have browsed it

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

HTML code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->

    
        <title>upload</title>
    

Copy after login


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 '
Copy after login
'; ?>


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

结果:

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

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

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


------解决方案--------------------
粗心。。。要知道细心是上帝
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template