$user = $rowed['name'];
$target = "images/memcards/";
$target = $target . basename( $_FILES['uploaded']['name']) ;
$ok=1;
if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target))
{
echo "<p>The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded</p>";
}
else {
echo "<p>Sorry, there was a problem uploading your file.<p/>";
}
I want to change the name of the file, either when uploading it, or after its uploaded. The text i'd like to change it to is stored in $user
Thanks for any help