Re: PLEASE HELP



> copy($HTTP_POST_FILES['uploadPhoto']['tmp_name'],
> $firstNAme . " " . $lastname . ".bmp" );

<matt.sus@xxxxxxxxx> wrote in message
news:1114721382.048432.88190@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 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
>


.



Relevant Pages

  • Cron to email notification of ftp file upload?
    ... I have my /var/pub/incoming directory set to allow anon uploads with write ... script from Dmag Designs) to run a family photo album on my apache server. ... to dump a set of 50 pictures, I put a link to the ftp/incoming directory on ...
    (alt.os.linux)
  • Form Post Issues
    ... I have a webpage that uploads a photo picture file to server, ... characters of filename. ... I'm also trying to get the file to the server and it's not uploading it. ...
    (alt.php)
  • Form Post Issues
    ... I have a webpage that uploads a photo picture file to server, ... characters of filename. ... I'm also trying to get the file to the server and it's not uploading it. ...
    (comp.lang.php)
  • Re: OT: for shutter bugs
    ... still one main patch photo center that tells you eye where to go.. ... once you have a login and password all you ... forget to assign each photo to a gallery it discards the uploads (from ...
    (rec.boats)
  • PLEASE HELP
    ... hi i have a website where people can register their details and upload ... 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 ...
    (comp.lang.php)