[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>
<TD width= "18%" > Operation id</td>
<TD width= "63%" >
<input type= "text" name= "ActionId" >
</td>
<TD width= "19%" > </td>
</tr>
<tr>
<TD width= "18%" > Username </td>
<TD width= "63%" >
<input type= "text" name= "username" >
</td>
<TD width= "19%" > </td>
</tr>
<tr>
<TD width= "18%" > Password </td>
<TD width= "63%" >
<input type= "password" name= "password" >
</td>
<TD width= "19%" > </td>
</tr>
<tr>
<TD width= "18%" > local file </td>
<TD width= "63%" >
<input type= "File" name= "UserFile" >
<input type= "hidden" name= "max_file_size" value= "2097152" >
</td>
<TD width= "19%" > </td>
</tr>
<tr>
<TD width= "18%" > Target file </td>
<TD width= "63%" >
<input type= "text" name= "NewName" >
(full file name, do not fill in the default used formerly) </td>
<TD width= "19%" > </td>
</tr>
<tr>
<TD width= "18%" > </td>
<TD width= "63%" >
<input type= "checkbox" Name= "Forceover" value= "1" disabled>
If the target file name is forcibly overwritten (with caution) </td>
<TD width= "19%" > </td>
</tr>
<tr>
<TD width= "18%" > </td>
<TD width= "63%" >
<input type= "Radio" name= "ActionType" value= "Upload" checked>
Upload
<input type= "Radio" name= "ActionType" value= "del" >
Management </td>
<TD width= "19%" > </td>
</tr>
<tr>
<TD width= "18%" > </td>
<TD width= "63%" >
<input type= "Submit" Name= "Tok" value= "OK" >
<input type= "Submit" name= "reset" value= "Recovery" >
</td>
<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.