HELP - Question to do with a bit of PHP code

Discussion in 'PHP' started by bradea, Aug 25, 2011.

  1. #1
    Firstly, can I just say I'm not a web developer, and I'm building my site using Wix, because in terms of design, thats the best/cheapest option. Even though 'flash is a crime'. Whatever, cant afford for a professional web developer and not worth it on such a small project.

    Rant over:) heres my Problem/Question:

    Does anybody know where the code will be, that I could inject into my site, that will allow this:

    For someone to upload something onto my site, and then for it to go onto another page to be visible as a thumbnail.

    Inside my head, this probably makes a lot more sense, but anyone with any info would help


    Thanks:)
     
    Solved! View solution.
    bradea, Aug 25, 2011 IP
  2. #2
    EricBruggema, Aug 25, 2011 IP
  3. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #3
    You need an input element, with the type of "file" in your client-side code. On the server-side, you need a little code to put the file somewhere. Then you'll need either to rewrite your page to include the file uploaded as a thumbnail, or you'll have to store the name of the uploaded file in a database and have the page get the name of the file to make a thumbnail of from the database. Tizag has a pretty good explanation. tizag dot com/phpT/fileupload.php
     
    Rukbat, Aug 25, 2011 IP
  4. bradea

    bradea Peon

    Messages:
    6
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thank you for the help, I've almost got my head around it now!:)
     
    bradea, Aug 27, 2011 IP