<?
//upload one file
require "./upload.class.php";
if($HTTP_POST_VARS[Submit]){
$upload = new ClsUpload();
$upload->save("file",".");
$upload->p($upload);
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>upload file</title>
</head>
<body bgcolor="#E5E5E5" text="#000000" link="#006699" vlink="#5493B4">
<form name="form1" method="post" enctype="multipart/form-data" >
<input name="file" type="file" id="file" >
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>
|