Home > php教程 > php手册 > PHP多文件上传分析

PHP多文件上传分析

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 11:21:56
Original
1332 people have browsed it

PHP多文件上传个人理解总结

多文件上传是PHP中一基础应用,在此把相关知识向大家详细介绍一下,本人水平有限,还请多提意见。大家一起进步。
        上传文件HTML的输入标签FILE类型中的名称后要加[],作用是在HTML中向PHP建立数组,比如名称为pictures,多文件引用名称则为pictures[],实例如下:
 
<br><font face="仿宋_GB2312"><form action="upload.php" method="post" enctype="multipart/form-data"> <br><p><br><input type="file" name="pictures[]"><br><br><input type="file" name="pictures[]"><br><br><input type="file" name="pictures[]"><br><br><input type="submit" value="上传"><br></p> <br> </form> //手册中实例。</font>利用HTML文件建立数组的方法手册中是这样讲解的:

        要使你的
结果被当成 array 发送到 PHP 脚本,要对
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template