if ($submit) {
function do_upload($filename,$newname) {
global $userfile_name;
$file = basename($filename);
$tmp_upload_path = "/tmp/";
$new_file_name = "uploaded/".$userfile_name;
if (!copy($tmp_upload_path.$file, $new_file_name)) { echo "Failed to copy file"; }
return;
}
echo "Your file <B>";
echo $userfile_name;
echo " </b>has been uploaded and will be posted to the site once an admin has approved the content.";
}
I get the message Your file test.txt has been uploaded and will be posted to the site once an admin has approved the content but the file isnt there when I check on the ftp?
Any ideas?