I have a web site where users can login and post a profile. I want them to be able to upload their picture to be included with their description. I know how to use a file upload program but I want to rename the image file when/as it is being uploaded and have no idea how to do that.
The person uploading the image file will have a unique "Account ID" such as $AccountID = "$FORM{'field1'}"; and I want the resultant image file in the database to be named pix$accountID.
Can someone provide assistance and point me to an example somewhere as to how to accomplish this task? Any assistance will be greatly appreciated.
Milt
In reply to Changing A File Name On The Fly by Milti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |