Hi,
I'm confused with the principle of retrieving uploaded pictures.
I have got the script working for users to upload pictures into a folder I called "uploads"
The idea being that once the pictures are uploaded, they would display automatically on the page.
question is, what do I need to do for this to happen:
1/ User use the browse button to select a file on his computer
2/ he clicks upload and the picture is uploaded to the upload folder "as is", with whatever name the picture file was given by the user, and whatever extention type (jpeg, gif etc"
3 /??? that picture is displayed on website, but how?
How can a page display that uploaded file.
I guess there is a dynamic way to do that, maybe store a path to the file in a table to then retrieve it? but how do you pick up the name of the file when you don't know what it is called on the users computer in the first place?
I can't see how this is done.
In fact, posting this thread I just realized this exact function is used in this forum. you can upload a picture that athen automatically displays with your message. the display part is what I don't understand
Can you help?
thanks,
Vinny