<meta charset="utf-8">
<title>index_uploads</title>
Copier après la connexion
index_uploads.php
<?php header("content-type:text/html;charset=utf-8");
echo "<pre class="brush:php;toolbar:false">";
print_r($_FILES);
echo "
Copier après la connexion
";
$count = count($_FILES['file']['name']);
for ($i = 0; $i alert('succeed!');window.location.href='index_uploads.php';";
} else {
echo "<script>alert('fail!');window.location.href='index_uploads.php';</script>";
}
}
uploads.php
以上就介绍了php基础练习--多文件上传,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。