Great, works, ...but I need to attach the file type i.e. .jpg .gif to the file name...currently just renames to username and username alone.
I tried this but doesn't work...
$res = copy($HTTP_POST_FILES['userfile']['tmp_name'], $path .
$_SESSION['username']['type']);
$message[] = "Upload sucessful!\n";
$filesize = $HTTP_POST_FILES['userfile']['size'] * .001;
$message[] = "(File Size: $filesize KB)<br>\n";