.oO(alwaysabitlost)
Quote:
I'm trying to set up a single page that uploads data for a product by the
user. I want them to be able to add two images, different sizes, renamed to
match the prod_id number, and upload those at the same time. Now I can submit
the normal text fields fine, grab the mysql_insert_id, make the column data
"1.jpg" and "1big.jpg" fine, but I don't understand how the whole tmp file
works with PHP so I'm having trouble actually renaming the two files and
copying them to my images folder as I've no idea how to locate them? |
Have a look at
Chapter 19. Handling file uploads
http://www.php.net/manual/en/features.file-upload.php
for explanations and an example.
HTH
Micha