Hey Natman,
Maybe this can help? (It does need some tinkering: It is part of a larger script I wrote a while back)
$directory = "uploads/";
if ($file) {
$fileName = "$date" . "_" . "$file_name";
if (copy($file, $directory . $file_name)) {
print "your file <B>" . $file_name . " (" . $file_size . " kb)</B> was successfully uploaded";
unlink($file);
}
else {
print "your file could not be uploaded";
}
}
print "
<FORM ACTION=\"" . $PHP_SELF . "\" METHOD=\"POST\" enctype=\"multipart/form-data\">
upload file:
<INPUT TYPE=\"file\" NAME=\"file\" SIZE=\"20\"><BR>
<INPUT TYPE=\"SUBMIT\" NAME=\"SUBMIT\" value=\"upload file\">
</FORM>
";