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 7 of 7
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    attach a file in a form

    Hi expert people

    I have a form on my web-site that users can use to send me their details etc, this works fine. I have now inserted an element that allows them to attach a file from their hard drive such as an image file, this works fine in that it finds a file, enters the file name and path in the box and sends these details along with the rest of the information. However when this information arrives in my e-mail box all the information is there including details of the attached file, but no file! What am I doing wrong?

    Any advice would be appreciated

    Regards

    Homer

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This is probably the wrong forum for this.
    What are you using to proces the form?PHP?

  • #3
    New Coder
    Join Date
    Jun 2002
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Bosko

    I am told that I am using formmail.pl to handle the form, as I said everything else works fine except the 'attach file' box.

    Actually I have just realised that this forum reply form has an 'attach file' box exactly the same as I need, but how to get this to work I have no idea.

    appreciate any further comments

  • #4
    New Coder
    Join Date
    Jun 2002
    Location
    Glasgow, Scotland
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Homer

    What Bosko was referring to was that it requires server side coding (PHP, Perl etc) to work.

    Basically your clients need toupload their image/whatever to your website.

    meerkat
    Ya don't need a weatherman to know
    which way the wind blows...

  • #5
    New Coder
    Join Date
    Jun 2002
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    attachments in forms

    Sorry for my ignorance, as I said I am only struggling through this one step at a time but I find it rather confusing, I gues this is something I should leave to the experts.

    Regards

    Homer

  • #6
    New Coder
    Join Date
    Jun 2002
    Location
    Glasgow, Scotland
    Posts
    40
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey don't be sorry for what you consider to be ignorance - we all have to start somewhere and by not asking you won't get anywhere

    meerkat
    Ya don't need a weatherman to know
    which way the wind blows...

  • #7
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    make sure your enctype is not the default application/x-www-form-urlencoded but multipart/form-data
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"


  •  

    Posting Permissions

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