Hi Louie,
Yeah I tried both your suggestions, but no go!?
I'm at a loss here...?? BTW I revised the code to try and match someone else's that was working...here it is....
<PRE>
if ($sample && ($sample_size < 1000000)) {
$fileroot = $GLOBALS["DOCUMENT_ROOT"].'tmp_pics/';
//Make sure directory exists, if not then create it
@mkdir($fileroot, 0777);
if (strlen($sample_name)>0){
//Strip double /'s (Common error on Win32 systems)
$tempfile = stripslashes($sample);
$newfile = $fileroot.$sample_name;
}
if(@copy($tempfile, $newfile .$n)) { //$n appends username to filename so I know who sent it.
echo("Sample Picture received, thank you.");
} else {
echo("Error saving Sample Picture." .
"However, your database information was sent.");
}
}
else {
echo("Your Sample Picture was too large." .
" Please select a smaller picture.");
}
unlink($sample);
</PRE>