文件上传,该怎么处理

WBOY
Release: 2016-06-13 12:35:59
Original
805 people have browsed it

文件上传
请问,在一个表单里面有普通的表单域(如),也有文件上传表单域(),那当使用php接收这些表单值的时候怎么同时接收呢,求教?


------解决方案--------------------
文件的使用 $_FILE数组
文本的看你的表单使用什么方式提交,对应使用$_GET $_POST,$_REQUEST包括两者
------解决方案--------------------
直接取name不行吗?

------解决方案--------------------
就一起接收啊,根据name,文件的话就用$_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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!