关于Form enctype="multipart/form-data"解决方案

WBOY
Release: 2016-06-13 12:39:24
Original
797 people have browsed it

关于Form enctype="multipart/form-data"
最近有个Volunteer,提出让我使用PHP来做网站开发,有看了看PHP的相关语法,似乎不是太难,在Win7的IIS上安装使用了,file的读写都没问题,但是file上传出了问题。
nbsp;html>




文件上载界面




ACTION = "welcome.php" METHOD = "POST" enctype="multipart/form-data">














welcome.php的内容我都没让他显示我的文件名,只是输出了个测试代码:



  echo "test"; 
  ?>





如果前面页面不选择文件,那么可以输出:test

如果前面页面选择了文件,那么点击提交就会出现:http 500的错误:

 
网站无法显示该页面
 
  HTTP 500 
 
    
最可能的原因是:
?该网站正在进行维护。
?该网站有程序错误。
 
    
你可以尝试以下操作:
 
    

  刷新该页面。  
 
    

  返回到上一页。  
 
    

详细信息  详细信息  
 
PHP FORM
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!