Forums

This topic is locked

uploading & renaming files

Posted 27 Feb 2002 18:51:50
1
has voted
27 Feb 2002 18:51:50 Tony Chronopoulos posted:
Hi guys, (& gals)

The next step to do on a site that I'm making is an area that users can upload images. I did some searching on the net and found a PHP script that kinda works. There's still some tweaking to do unless someone has another script that works great? <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Now, something that I have no idea how to do:

The file field will be part of a form with other fields to add a new product. I have a field called "Product_key" which is an autonumber & primary key.

What I want to do is automatically rename the file to the value of "Product_key" when someone uploads and image. ex: 00005.jpg


Thanks in advance.
Tony
_______________________
lunch is on me!

Reply to this topic