Functional Control Complete PHP upload program (4)

Source: Internet
Author: User
Tags file upload

[Table del]

#id User

fa001 lanf

Up lanf

#这个意思是说, the Operation ID is the file uploaded in fa001, only lanf can delete

?>

Call page

<title> File Upload </title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<body bgcolor= "#FFFFFF" >
<table width= "96%" border= "1" align= "Center" >
<form method= "POST" action= "upfile.php" name= "Upform" enctype= "Multipart/form-data" >
<tr>
<td>
<table width= "100%" border= "0" cellpadding= "0" cellspacing= "0" >
<tr>
&LT;TD width= "18%" > Operation id</td>
&LT;TD width= "63%" >
<input type= "text" name= "ActionId" >
</td>
&LT;TD width= "19%" > </td>
</tr>
<tr>
&LT;TD width= "18%" > Username </td>
&LT;TD width= "63%" >
<input type= "text" name= "username" >
</td>
&LT;TD width= "19%" > </td>
</tr>
<tr>
&LT;TD width= "18%" > Password </td>
&LT;TD width= "63%" >
<input type= "password" name= "password" >
</td>
&LT;TD width= "19%" > </td>
</tr>
<tr>
&LT;TD width= "18%" > local file </td>
&LT;TD width= "63%" >
<input type= "File" name= "UserFile" >
<input type= "hidden" name= "max_file_size" value= "2097152" >
</td>
&LT;TD width= "19%" > </td>
</tr>
<tr>
&LT;TD width= "18%" > Target file </td>
&LT;TD width= "63%" >
<input type= "text" name= "NewName" >
(full file name, do not fill in the default used formerly) </td>
&LT;TD width= "19%" > </td>
</tr>
<tr>
&LT;TD width= "18%" > </td>
&LT;TD width= "63%" >
<input type= "checkbox" Name= "Forceover" value= "1" disabled>
If the target file name is forcibly overwritten (with caution) </td>
&LT;TD width= "19%" > </td>
</tr>
<tr>
&LT;TD width= "18%" > </td>
&LT;TD width= "63%" >
<input type= "Radio" name= "ActionType" value= "Upload" checked>
Upload
<input type= "Radio" name= "ActionType" value= "del" >
Management </td>
&LT;TD width= "19%" > </td>
</tr>
<tr>
&LT;TD width= "18%" > </td>
&LT;TD width= "63%" >
<input type= "Submit" Name= "Tok" value= "OK" >

<input type= "Submit" name= "reset" value= "Recovery" >
</td>
&LT;TD width= "19%" > </td>
</tr>
</table>
</td>
</tr> </form>
</table>
</body>

This program should still be an unfinished version, that is, the user authentication (user name secret key) code has not been written, but I believe that for any one slightly familiar with PHP, this is a very common problem, you can be based on their own needs and conditions to verify the identity function Getuserright can be completed. When used, these three files should be in a writable directory for PHP (because you want to generate log files). All packages of this system are available for download in the source world of this website.



Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.