Forum Moderators: phranque
To upload an image to the server requires a bit of server side coding, whether in PHP, ASP or whatever you have available. there are components available to help you do this.
But, once the file is on the server, you need some way of tracking it, and getting the picture to appear on the web page dynamically. Most likely you'll need some type of database solution as well.
it's very tricky.
Here's what I do:
1) Upload the Image to the Server
2) If already there, replace it
3) Read the Database, look for the title of the file
4) If there, replace/update, if not, INSERT.
5) On the web page, I have a DB recordset reading all records for that item
6) If there are records/images, I display them in a certain order all with variable names.
Even in reading this I can see the complexity of the task. It's not easy and requires step by step care.
To upload an image to the server requires a bit of server side coding, whether in PHP, ASP or whatever you have available. there are components available to help you do this.
You need to look for server side scripts or components to do this for you.
In ASP, I use a component called ASPUpload, which has the code needed to process uploading items.
You need to search the PHP script repositories and see what you can find. Try Googling "PHP Image Upload" and see what shakes.