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 5 of 5
  1. #1
    New Coder
    Join Date
    Nov 2006
    Location
    Oxford/Barcelona
    Posts
    47
    Thanks
    3
    Thanked 0 Times in 0 Posts

    submit form not sending attachments

    Hi,

    I have just created a submit form which includes attachments. I got a script off HiQFM which handles attachments. I got it all working apart from the attachments. If I try to attach a document on the form, it isn't sent but when no attachment is attached on the form, I receive the information perfectly.

    Can anyone help? I think there must be a problem with my html (not the script): www.exigotranslations/order.htm:

    <form target="_blank" id="form2" enctype="multipart/form-data" action="/formmail/HiQFM.php" onsubmit="return validate();" method="post">

    <li class="attach"><label for="attach">Attach:</label> <input type="file" name="attach"/></li>

    <input type="submit" value="Submit to Exigo translations" />

    </form>

    Any help would be really appreciated as I am completely stuck as to why attachments aren't sent.

    Thanks,

    Richard.

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,529
    Thanks
    8
    Thanked 1,091 Times in 1,082 Posts
    Try taking this out:
    onsubmit="return validate();"

    See if it works.

    I'm guessing the file attachment gets lost through the Javascripting.

    I also entered in a crap email: sdfjkldjk
    and it validated just fine, so you must have some problems with your form checking

  • #3
    New Coder
    Join Date
    Nov 2006
    Location
    Oxford/Barcelona
    Posts
    47
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Hi,

    Ok, I took out onsubmit="return validate();" and it didn't work. It gives me this in the email submitted, completely omiting the attachment or its details.


    The following was submitted on July 5th, 2007 at 01:38PM (PDT).
    HiQFormMail version 2.0 - 86.128.115.92 - http://www.exigotranslations.com/order.htm

    Subject: Translation work!
    yourname: r
    youremail: rwelchman@yahoo.co.uk
    source: English
    target: Chinese (simplified)
    Calender: 06.07.2007
    delivery format: Excel
    textarea: testing attachment


    REMOTE_ADDR: 86.128.115.92
    BROWSER: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.2.0)

    What do you think?

    Richard

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,529
    Thanks
    8
    Thanked 1,091 Times in 1,082 Posts
    I guess now you'll be looking into: formmail/HiQFM.php

    It looks like a script you installed? Something not configured
    right, or not set properly. We'll have a hard time troubleshooting
    without being able to change things and test it out ... so you'll
    have to hammer away at it.

  • #5
    New Coder
    Join Date
    Nov 2006
    Location
    Oxford/Barcelona
    Posts
    47
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Hi,

    Ok, thanks, I'll have a go at it, trial and error.

    Richard


  •  

    Posting Permissions

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