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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

image upload

  • 20-03-2006 1: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, Registered Users 2 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