Login   Register  
PHP Classes
elePHPant
Icontem

File: test2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Paul.Ren  >  Multi Upload  >  test2.php  >  Download  
File: test2.php
Role: Example script
Content type: text/plain
Description: upload sigle string file use save_as method
Class: Multi Upload
Manage multiple files uploaded via Web forms
Author: By
Last change:
Date: 2004-06-22 03:38
Size: 599 bytes
 

Contents

Class file image Download
<?
//upload one file. use save_as method
require "./upload.class.php";
if(
$HTTP_POST_VARS[Submit]){
    
$upload = new ClsUpload();
    
$upload->save_as("file","./upload.tmp");
    
$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>