Home > Backend Development > PHP Tutorial > 为何 文件域内容无法显示

为何 文件域内容无法显示

WBOY
Release: 2016-06-13 10:31:46
Original
934 people have browsed it

为什么 文件域内容无法显示?





无标题文档




 
 

echo $_POST[a];
?>



为什么 那个 echo $_POST[a];就是输出不了?  
改为 echo $_POST[sub];却可以输出!

------解决方案--------------------
echo $_FILES["a"]["name"];
------解决方案--------------------
因为 是上传
php做了特殊处理,所以 a 就不在 $_POST 中了,而在 $_FILES 中

------解决方案--------------------
$_FILES["a"]["name"]; 就是了 
你说的书上 $_POST 也不包括上传控件
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