Home  >  Article  >  Backend Development  >  php 表单 file类型的不提交是为个啥?解决思路

php 表单 file类型的不提交是为个啥?解决思路

WBOY
WBOYOriginal
2016-06-13 09:58:54968browse

php 表单 file类型的不提交是为个啥?

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

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> dump($_POST);//没有logo710项  如果把type="file" 改为 type="text" 就有logo710项了这是为个啥?

 

------解决方案--------------------
file类型用$_FILES接收
------解决方案--------------------
用type="file"的话。

就用$_FILES。

你打印下$_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