Results 1 to 3 of 3

Thread: how to attach files with a browse button

  1. #1
    Join Date
    Feb 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to attach files with a browse button

    Hi -

    I am new to this forum, I am a designer with not a lot of knowledge in the coding area. I have a form I set up that works outsid of one button. I need to know how to use a 'browse' button to attach files to send via this form. Also,m will it matter what type of files they are?

    Here is the page I am speaking off so you can see it. Any help you could offer would be GREATLY appreciated.

    http://www.altechmachine.com/test/inquiry.html

    Thanks

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    This isn't a Javascript question.
    Code:
    <form enctype="multipart/form-data" action="handler.php" method="post">
      <input type="file" name="userfile">
      <input type="submit" value="Upload">
    </form>
    You'll then need some form of server-side script to handle the file(s). The format doesn't matter.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Feb 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks

    Sorry, that just shows you that I know little about scripts. Thanks for your advice, I do very much appreicate you giving me something to go on.

Bookmarks

Posting Permissions

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