Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

image upload

Options
  • 20-03-2006 2:32pm
    #1
    Closed Accounts Posts: 18


    hey guys i was just wondering if anybody has the code to upload a jpg a using html that i can then save to a a local server? so far this is all i got ( i aint good at html)
    <form action="" method="post" enctype="multipart/form-data">
    <p>Pictures:

    <input type="file" name="pictures[]" />
    <input type="submit" value="Send" />
    </p>
    </form>


Comments

  • Registered Users Posts: 6,315 ✭✭✭ballooba


    Me thinks you will need some server side code too.

    Look into PHP, CGI, Perl or JSP.

    PHP is probably the best for lightweight uses.


  • Closed Accounts Posts: 30 daisy25


    If you want to use PHP, have the form submit to your new PHP page. Then your PHP page needs to handle the upload. All file uploads that are submitted via POST are available to PHP via the $_FILES array. Have a look at this, it should give you some ideas, its from the PHP manual.
    http://php.mirrors.esat.net/manual/en/features.file-upload.php

    Hope that helps!


Advertisement