Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How to create an "Upload" button...  (Read 18985 times)

0 Members and 1 Guest are viewing this topic.

Meatallica

    Topic Starter


    Starter

    How to create an "Upload" button...
    « on: March 14, 2009, 11:34:51 PM »
    How can I make it so my website can allow users to upload files from their computer?
    My website is: http://gearboxtones.webs.com/
    Would I be able to do this since I am using someone else's server or whatever?
    If you go to my website and click on forums and then a topic, I want users to have the option to upload their own file instead of only being allowed to paste the URL of a file.

    kpac

    • Web moderator
    • Moderator


    • Hacker

    • kpac®
    • Thanked: 184
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 7
    Re: How to create an "Upload" button...
    « Reply #1 on: March 15, 2009, 05:48:08 AM »

    Meatallica

      Topic Starter


      Starter

      Re: How to create an "Upload" button...
      « Reply #2 on: March 15, 2009, 11:48:41 AM »
      See here: http://www.w3schools.com/php/php_file_upload.asp
      Yeah, I've already looked at that but would you be able to specifically tell me what I'm supposed to do with that?

      It shows how to create the upload form with


      <html>
      <body>

      <form action="upload_file.php" method="post"
      enctype="multipart/form-data">
      <label for="file">Filename:</label>
      <input type="file" name="file" id="file" />


      <input type="submit" name="submit" value="Submit" />
      </form>

      </body>
      </html>

      Can you just place the location of the file somewhere in that and it will upload the file?
      If you want I could give you my password/username and you could do it for me if you wouldn't mind. 'Cause I don't really see a script box that will specifically allow me to create an upload form.

      Any help would be appreciated.

      Meatallica

        Topic Starter


        Starter

        Re: How to create an "Upload" button...
        « Reply #3 on: March 15, 2009, 12:04:27 PM »
        I also found this website but I don't really know how to apply the form to my site:
        http://www.sitepoint.com/article/uploading-files-cgi-perl/