PHP Tutorial.Application Example 14_PHP Tutorial

WBOY
Release: 2016-07-13 16:54:19
Original
839 people have browsed it

Multiple file upload system program
//Full version of multiple file upload system
include("../include/common.inc");
$title = "Multiple files Upload program";
include("../include/header.inc");

//Define the number of files allowed to be uploaded

define("UPLOAD_NO", 10) ;

echo("

Welcome!
You can upload up to ".UPLOAD_NO at one time" ."files


n");
if($REQUEST_METHOD!="POST"){
echo("
n");
echo("n");

for($i=1;$ i<=UPLOAD_NO;$i++){
echo(" ");

if($i%2==0)
echo ("
n");
}

echo("

Overwrite existing files? ");
echo("

n");
}
else{
//Process upload
$noinput = true;
for($i=1; $noinput&&($i<=UPLOAD_NO);$i++){
if(${"infile".$i}!="none") $noinput = false;
}
if($noinput ){
echo("No selected file, return and try again");
exit();
}
echo("

The file you selected has been successfully uploaded to the server's temporary directory!
");
echo("


File number

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/631777.htmlTechArticleMultiple file upload system program?php //Multiple file upload system full version include(../include/common. inc); $title = Multiple file upload program; include(../include/header.inc); //Definition allows uploading...
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