php实现多文件上传代码
来源:互联网 发布:网站一键生成源码 编辑:程序博客网 时间:2024/06/01 10:27
<form action="" method="post" enctype="multipart/form-data">
<p>Pictures:
<input type="file" name="pictures[]" />
<input type="file" name="pictures[]" />
<input type="file" name="pictures[]" />
<input type="submit" value="Send" />
</p>
</form>
<?php
foreach ($_FILES["pictures"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
$tmp_name = $_FILES["pictures"]["tmp_name"][$key];
$name = $_FILES["pictures"]["name"][$key];
move_uploaded_file($tmp_name, "data/$name");
}
}
链接
0 0
- php多文件上传实现代码
- php实现多文件上传代码
- php多文件上传实现代码
- php实现文件上传的代码
- 【代码】php 怎样实现单个文件上传
- PHP 图片文件上传实现代码
- PHP 图片文件上传实现代码
- PHP实现多文件上传
- php实现多文件上传
- PHP实现多文件上传
- PHP-实现多文件上传
- PHP文件上传代码
- PHP上传文件代码
- php文件上传代码
- php文件上传代码
- PHP上传文件代码
- php上传文件代码
- php上传文件代码
- Freemarker常用技巧-2
- 2016年了
- PHP的类和对象(六)抽象类和接口
- 使用dialog退出保存还是直接退出
- ios 正则表达式小结
- php实现多文件上传代码
- PHP的类和对象(七)Trait
- Ubuntu 14.04 下gnuradio 3.7.9 及gr-radar源码安装问题解决办法
- mybatis 中#与$的区别
- 【egret】 碰撞检测
- web安全之文件上传漏洞攻击与防范方法
- iOS知识篇-灰常实用的小技巧
- SCUT引擎简单使用三-服务器间通信简单介绍
- cmake 学习笔记(一)