Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8

Thread: Php Help-Upload

  1. #1
    Regular Coder
    Join Date
    Dec 2004
    Posts
    202
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Php Help-Upload

    I don't know how to upload a file that a user selects with a browse button in html to a site. Can someone help me with that and also i need that name of the file to be changed on the site to a number which is number of all files in the directory. Name changed after wards so it is included in that number. Any help?

  • #2
    Regular Coder
    Join Date
    Jun 2005
    Posts
    804
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The docs have a pretty good intro to using the basic upload functions and $_FILES array here.

  • #3
    Regular Coder
    Join Date
    Dec 2004
    Posts
    202
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i looked at that and i am really confused about how that works. Any help?

  • #4
    Regular Coder
    Join Date
    Jun 2005
    Posts
    804
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Which part are you confused about?

  • #5
    Regular Coder
    Join Date
    Dec 2004
    Posts
    202
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am confused about the whole file upload thing. I keep reading it and the scripting does not make sense to me.

  • #6
    Regular Coder
    Join Date
    Dec 2004
    Posts
    202
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I try there sample but they wont upload!

  • #7
    Regular Coder
    Join Date
    Jun 2005
    Posts
    804
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Are you getting any errors, or does the file just not upload? Please post the code you're using, including the HTML form.

  • #8
    Regular Coder
    Join Date
    Dec 2004
    Posts
    202
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok nvm i got a friend to help me fix it but he decided to write me a different script. But thanks for your help.


  •  

    Posting Permissions

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