* Required field"); define("ERR_INVALID", " * Invalid entry"); // array to hold errors for each field $errors = array("firstname" => "", "lastname" => "", "address" => "", "city" => "", "state" => "", "zipcode" => "", "phone" => "", "email" => "", "available" => "", "message" => "", "file" => ""); $headerpic="banner-right.gif"; include("inc/top.php4"); $fileatt = $_FILES['file']['tmp_name']; $fileatt_type = $_FILES['file']['type']; $fileatt_name = $_FILES['file']['name']; echo "
Job title: ".$_GET['job_title']."
"; echo "Date: ".date("m/d/y")."
"; if(form_complete($errors)) { // if form is ok => send the email send_mail($fileatt, $fileatt_type, $fileatt_name); } else { // else (re)print form with error messages print_form($errors); } echo "| Position | " . "".$_GET['job_title']." |
| Date | " . "".date("m/d/y")." |
| Name | " . "".$_POST['firstname']." ".$_POST['lastname']." | " . "
| Address | " . "".$_POST['address']." ".$_POST['city'].", ".$_POST['state']." ".$_POST['zipcode']." | " .
"
| Phone | " . "".$_POST['phone']." |
| ".$_POST['email']." | |
| Date Available | " . "".$_POST['available']." |
| Message | " . "".$_POST['message']." |
Your application has been sent. Thank you for your interest in Payne Environmental.
Application could not be sent. Please email your resume to jobs@paynecorp.com.