<?
include("upload.class.php");
if($_POST){
$upload = new safe_upload("userfile");
//$upload->file_prefix = "pict";
print_r($upload->upload_process());
}else{
echo "<table border=0 style='width: 100%'>
<tr>
<td><center>
<form method='POST' enctype='multipart/form-data'>
<input type='file' size='20' name='userfile'>
</td>
<td><center><b><font size=2>Specify Source</td>
</tr>
</table><center><input type='submit' value='Submit' name='B1'><input type='reset' value='Reset' name='B2'></b></font></p>
</form>";
}
?>
|