Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2003
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Attaching and sending a file through a web form

    Hi all,

    I am currentyl trying to find a way I can browse and attach a file in a web form and then send it through to an email address. The form previously didn't have this feature and I used formMail to send it. I have added an <input type="file"> and this works to attach a file but when I send it through FormMail is just writes in the email the path of where the file was on my hard drive.

    Does anybody have any clue how to do this?

    thanks for any help

    Matt

  • #2
    Regular Coder
    Join Date
    May 2004
    Location
    The First State
    Posts
    233
    Thanks
    9
    Thanked 0 Times in 0 Posts
    you need the form tag to include the encrypt attribute

    <form method="post" enctype="multipart/form-data" action="">


  •  

    Posting Permissions

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