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
The bug in your script comes from this line (258):
PHP Code:
$message.=phattach($_FILES['attachment']['tmp_name'][$i],$_FILES['attachment']['name'][$i]);
It should be like this:
PHP Code:
$message.=phattach($_FILES['attachment']['tmp_name'][$i], $_FILES['attachment']['name'][$i], $boundary);
For your other issue, you can add a third array and use that to change the actual subject.
Eg.
PHP Code:
$subjects=array("Select A Secretary", "Cup Competitons", "Ladies Sections", "Mixed League / Cup", "Sections A, D and E", "Sections B, C and E");
$real_subjects=array("Select A Secretary", "Result Card For Cup Competitons", "Result Card For Ladies Sections", "Result Card For Mixed League / Cup", "Result Card For Sections A, D and E", "Result Card For Sections B, C and E");
Then, on line 219:
PHP Code:
$emailsubject=$real_subjects[$emailsubject];