0 || sizeof($_FILES) > 0) { if ($GLOBALS['configuration']['email_sink'] != "") { $mail = new PHPMailer(); $mail->From = 'noreply@webformfactory.com'; $mail->FromName = 'Web Form Factory'; $mail->AddAddress($GLOBALS['configuration']['email_sink']); $message = ""; $html = file_get_contents(__FILE__); $errors = array(); foreach ($_POST as $key => $value) { if (QuestionRequired($key, $html) && $value == '') { AddFormError($errors, 'Some required fields were not filled in'); } $message .= $key." : ".$_POST[$key]."\n"; } foreach ($_FILES as $key => $value) { if (QuestionRequired($key, $html) && $value == '') { AddFormError($errors, 'Some required fields were not filled in'); } $mail->AddAttachment($value['tmp_name'], $value['name'], "base64", $value['type']); } $message .= "------ end of message ------"; if (sizeof($errors) == 0) { $mail->Body = $message; $mail->Send(); //mail($GLOBALS['configuration']['email_sink'], 'WFF: New response from workshop10', $message, "From: Web Form Factory "); ?> Acknowledgement Thanks for your interest in the workshop.  We'll notify you of your application's status when the enrollment is determined.
Application: Summer Workshop 2010
Long Beach Project in Geometry and Symmetry
Mathematics Department, CSULB
Application for Summer Workshop
Wallpaper Patterns: analysis and exploration
9A-3P          1&2 July 2010

Fill in each item and submit when complete.

Last name 

First name 

email 

Position   

Affiliation/School 

Briefly explain your interest in attending the workshop (100 word limit) .
 

0) { foreach ($errors as $error) { echo $error."
"; } } ?>