I am using an html form and php to allow users to upload jpg’s to the webserver. When a jpg has been selected I would like to display it on the same page. Is there a server-side programing langauge that will do this?
@pyroOct 01.2003 — #Depends what you mean. Do you mean when it has been uploaded from their computer, or are you talking about making a "preview" so to speak, for the images before they are uploaded?
@kanuskiauthorOct 01.2003 — #My mistake. I meant a client-side script so I can have a preview of the image on the same page. Users can then add other data for the image before uploading.
@PeOfEoOct 03.2003 — #what if after the image were selected you populate an <img src tag dynamically. You could use an html <input file or something with get the path from that and then use java script to fill the img src. Sound plausable?
@pyroOct 03.2003 — #Yes, it would be restricted to IE, and I'm guessing most users have it set to the default setting for ActiveX (disabled for scripts not marked as safe, disabled for unsigned, prompt for signed), which is pretty limited...
@PeOfEoOct 03.2003 — #If you cant do it client site do it with a server side langange, upload it as a temporary file (Extra code may be needed to overright depending on the server and language) and then populate the <img> tag on change of the input type="file"> It will cause the page to refresh but it will not be browser specific.