...

View Full Version : submit form not sending attachments



Richard Welch
07-05-2007, 06:10 PM
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.

mlseim
07-05-2007, 09:09 PM
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

Richard Welch
07-05-2007, 10:46 PM
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

mlseim
07-05-2007, 11:22 PM
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.

Richard Welch
07-06-2007, 03:32 PM
Hi,

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

Richard



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum