The file submission page has been generated and the following task is clear: Save the submitted file contents to the server.
Here's a couple of ways to do this:
1. Use PHP to Save:
We first define a file Save function fup () it has two parameters:
$filename: File contents
$fname: File name (including path)
All that's left is to write a loop to write the file to the server sequentially. Here's a quick explanation:
PHP for upload file processing is like this: if the submitted file box I for FILE0, then the file submitted to PHP saved in the variable $file 0, and the file name is stored in the $file 0_name. So what I'm going to do in this loop is to break down the content submitted by the submission page and see the code below for the implementation process.
Sub g_bott{
print ' </table> ';
}
----------------------------------------------------------------------
If you have good suggestions, please email:gearsoft@netease.com.
"This article copyright belongs to the author Gearsoft and Osso Nets jointly owned, if need to reprint, please specify the author and source"
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.