上传多文件不用以数组形式传的。把收到的$_FILES用print_r显示出来就看到结构了,至于怎么用,只有自己想了,一时也不怎么好说。
解决方案 »
- 急~~~~在线等候~~~ php批量删除问题,请求帮助,多选的时候为什么只能删1条信息哦
- 帮我看看。php。。PHP 是否配置好了。
- smarty3.0出现错误提示function call 'clear_all_cache' is unknown or deprecated.
- 招IVR工程师一名
- 统计今日、昨日的帖子数量,php mysql 语句 该如何书写?
- 请教中文验证的正则表达式
- 有比较成熟、完整、易用的PHP解析XML类吗?谁能帮忙推荐或指点?
- PHP5 + Sqlite + PDO 造就的 http://www.biho.com.cn
- 招php项目经验者
- 急,50分求解读取数据库的问题
- 【发布】PLChart v1.0
- 向各位讨招了,一个中英文风格站的问题.
<?php
//places files into same dir as form resides
foreach ($_FILES["f1"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
echo"$error_codes[$error]";
move_uploaded_file(
$_FILES["f1"]["tmp_name"][$key],
$_FILES["f1"]["name"][$key]
) or die("Problems with upload");
}
}//文件数目
$test = count($_FILES["f1"]["tmp_name"]);
?>