Pre-Knowledge: Javascript, PHP (small)/perl (small)!
Test environment: Windows2000 IIS5 PHP (Win98 PWS PHP3 failed, estimated to be a problem with the configuration)
Directory structure:
/wwwroot/cgi-bin/fileup.php (File receive)
/wwwroot/www/test/phpfileup.htm (file submission)
/wwwroot/www/test/tmp/(Default save directory)
Preface: File upload, simple and troublesome. The following is the upload file Submission page, using this page you can not only generate 1000 upload file box (actually any number of 0~n), and can indicate their save path respectively.
The file input box for the submission page is named: File0,file1,... file100,... filen
The File path box for the Submit page is named: path0,path1,... path100,... pathn
Because the page generation is very simple, so there is no more explanation, with JavaScript defined two functions, check () for the submission page, create () to generate File upload box. If you have any better suggestions or questions, please email:gearsoft@netease.com
Phpfileup.htm
--------------------------------------------------------
<title></title>
Please enter the number of files to upload:
The file submission page has been generated, and the following task is clear: Save the submitted file contents to the server.
http://www.bkjia.com/PHPjc/631940.html www.bkjia.com true http://www.bkjia.com/PHPjc/631940.html techarticle Preliminary knowledge: Javascript, PHP (small)/perl (small amount)! Test environment: Windows2000 IIS5 php (Win98 PWS PHP3 failed, estimated to be a problem with configuration) directory structure:/wwwroot/cgi-bin/ File ...