#1
|
||
|
Attachment Not Attaching on phMailer Form
Can anyone provide me with some help, I have made an error in the phMailer script but can't quite find out where.
Attached in the zip file is the php page, the form I am looking to use can be located at http://www.stroudskittles.co.uk/phMailer.php It all works well with the Result Secretary Option directing the email to the Correct address, whilst by using a Chained Menu depending on the selection selected I can limit the team names. The problem occurs however when I atempt to submit the form as I receive the following message JavaScript Error Destination:Object expected Source:http://www.stroudskittles.co.uk/phMailer.php Line:105 see more details? I click on the ok option, in the bottom left it states Error on Page. The page changes and a message appears stating Warning:Missing argument 3 for pattach(), called in /home/public_html/phMailer.php on line 258 and defined in /home/stroud/public_html/phMailer.php on line 121 The auto response to the sender is fine, the problem however is the document is not attached to the email. Any help very much appreciated Many Thanks |
#2
|
||
|
Hello
I think I have this working correctly now, I'm not sure but I think their a minor error in the script? I made a minor change in line 199 which currently reads // Function used to attach files to the message function phattach($file, $name, $boundary) { I edited it to read // Function used to attach files to the message function phattach($file,$name) { global $boundary; It now works fine. I have a couple more questions; the form does not check to see if there is an attachment; is this possible; I've tried the example on the Board but it doesn't seem to work. Also is it possible to add Captcha as I was getting some Spam when I originally looked at using this script (V1.5) Otherwise this is a brilliant php script Many thanks for any assistance |
#3
|
||
|
Forgot to add one other minor thing. Although I am using the Drop Down Menu, which is used for the Subject array, is it possible to add a common title in the Email Subject Box
i.e. If someone Selects Sections A D & E, the title in the email to the user will appear as "Sections A D & E" I am looking to change this so it states "Result Card For Sections A D & E" |
#4
|
||
|
The error explains exactly what the problem was:
Code:
Warning:Missing argument 3 for pattach(), called in /home/public_html/phMailer.php on line 258 and defined in /home/stroud/public_html/phMailer.php on line 121 PHP Code:
PHP Code:
Eg. PHP Code:
PHP Code:
__________________
04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
#5
|
||
|
Thanks for your help Scott it now appears to be working well.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how can we submit phmailer form by using java script | roop | phphq.Net Forums | 2 | 02-17-2011 08:15 PM |
Adding Capatcha to PhMailer Form | Gazza | phphq.Net Forums | 0 | 04-07-2010 01:58 AM |
Phmailer file attachment options | Frizzo | phphq.Net Forums | 20 | 10-24-2008 07:12 PM |
phMailer File Attachment Label | jamesr | phphq.Net Forums | 0 | 08-13-2008 03:13 AM |
phMailer attachment | Fallu | phphq.Net Forums | 3 | 12-25-2004 01:09 AM |