hi i have a website where people can register their details and upload
a pic.
so i have variables for firstName and lastName etc
not the following lines are in the php file that everything gets sent
to:
copy($HTTP_POST_FILES['uploadPhoto']['tmp_name'],
$HTTP_POST_FILES['uploadPhoto']['name']);
print "<h2>Thank you for registering.</h2><br>";
print "<h2>Your details have been saved on our system.</h2>";
print "<br>"
All the variables go nicely into the mysql database and the photo
uploads, however it just uploads with the name the person has it saved
on their computer as.
Is there a way to ammend the above to rename the photo they are
uploading as their firstName and lastName.
Please help as not only is it driving my crazy but i've also spent to
much in this t-mobile hotspot trying to google this problem.
Thanks