WEB PHP Crew: Need some help with a script im writing

Discussion in 'OT Technology' started by Ricky, Aug 26, 2008.

  1. Ricky

    Ricky █▄ █▄█ █▄ ▀█▄

    Joined:
    Jun 17, 2005
    Messages:
    38,767
    Likes Received:
    6
    Basically i have this multi-field uploader.

    Everything uploads and shit correctly except this...

    I have it so it outputs this variable, which we'll call $file

    It outputs the local directory "'/home/blahblah/public_html/upload/beta/files/filename.jpg".

    The thing is it's only outputting one of the fields. How will i go about so it can output the rest of the fields ?
     
  2. intrktevo

    intrktevo New Member

    Joined:
    Oct 18, 2004
    Messages:
    5,781
    Likes Received:
    0
    Location:
    UCF
    you have to name your upload files like:

    then you have to loop through all those in your php script

    http://www.devarticles.com/c/a/PHP/Creating-a-MultiFile-Upload-Script-in-PHP/1/ provides a slightly different approach, but I think the one I mentioned is better because you never have to define the number of files to upload in the php script itself, it can just adapt
     
  3. kingtoad

    kingtoad OT Supporter

    Joined:
    Sep 2, 2003
    Messages:
    55,915
    Likes Received:
    8
    Location:
    Los Angeles
    Post your code?

    Best way to do this is to store all the files in an array and loop through the array as you upload the files.
     

Share This Page