Photo preview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pradeepjain
    Contributor
    • Jul 2007
    • 563

    Photo preview

    Haii,
    I am making aform where in a photo needs to be uploaded..say lke when he browes the photo and selects a pic he must be shown a preview of the pic and then when he finally saves the form the pic must be saved..


    Thanks,
    pradeep
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Can't be done with php - you'd have to use something like flash, possibly.

    Comment

    • hsriat
      Recognized Expert Top Contributor
      • Jan 2008
      • 1653

      #3
      Preview can't be given without having a travel through the server side script.
      You can though use an iframe method to upload a picture. Once uploaded, save the picture as a thumbnail somewhere in the server. And in your HTML, dynamically (with JavaScript) create an img element with src as that thumbnail's address.

      Comment

      • pradeepjain
        Contributor
        • Jul 2007
        • 563

        #4
        I have 2 steps in the form i.e he fills up the details on the main page next he previews the page and then submits ..can we do like this in main page let him upload the image and in the preview page he can view the image ???....but the same thing i tried last time but the image details and image was getting lost while submitting data..

        Thanks,
        Pradeep

        Comment

        • dlite922
          Recognized Expert Top Contributor
          • Dec 2007
          • 1586

          #5
          Originally posted by pradeepjain
          I have 2 steps in the form i.e he fills up the details on the main page next he previews the page and then submits ..can we do like this in main page let him upload the image and in the preview page he can view the image ???....but the same thing i tried last time but the image details and image was getting lost while submitting data..

          Thanks,
          Pradeep
          things don't get lost, you lose them.

          Let's see some code,


          Dan

          Comment

          Working...