Results 1 to 8 of 8

Thread: Help adding browse button

  1. #1
    Join Date
    Apr 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help adding browse button

    ok so i am trying to add a browse button. What i want it for users to be able to upload a picture and it show up on another page such as the homepage. I have the browse button code, what do i need to do from here?

    PHP Code:
    <FORM ENCTYPE="multipart/form-data" ACTION="check.php" METHOD=POST>
    Upload this file: <INPUT NAME="userfile" TYPE="file">
    <
    INPUT TYPE="submit" VALUE="Send File"></FORM

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    type=file makes it a browse button.

    that's the insanely easy part compared to the rest. don't be too daunted, but that's just the html side of things... php will do the rest.

    more info here:

    http://us3.php.net/manual/en/features.file-upload.php

  3. #3
    Join Date
    Apr 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ok thanks i added the codes. Now i have everything set up and when i add the image it says successful but the image on the page shows as a box with an X in it, but it shows the image uploaded on my control panel...whats wrong?

    Look at this page and see why its not working please


    http://runescapeacademy.com/gallery.php

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Your site is severely messed up, in Firefox at least.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Apr 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Messed up? It looks fine to me. What looks messed up, if you can send a picture....

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I did. I linked it in my last post.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Apr 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh this is what it looks like to me




  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I didn't need to know that; you did Which browsers did you test it in?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •