do this... ($picture is the variable which comes from the field named picture, and contains the full path to the clients picture)... ($username ensures that when the picture is uploaded, the file is named uniquely... you see, it is best, to change the name of the file when you upload it to your sever --> $username will ususally come from a database, or be some other primary key variable)
// upload picture =============================================================//
$username = "lordd";
if(strlen($picture)>4)
{
$fileName = $username . ".jpg";
copy ($picture, "tmp/$fileName") or die ( "Couldn't copy image 1!" );
$picture = $fileName;
}