Ok my job postings are coming out today and I cant get my online form to work…can anyone please take a look at my php and help?
<title>employment-form</title>
<?php
if(isset($_POST['submit'])) {
$to = "[email protected]";
$subject = "JOB APPLICANT";
$AFirstName2 = $_POST['AFirstName2'];
$ALastName2 = $_POST['ALastName2'];
$AEmail2 = $_POST['AEmail2'];
$AAddress12 = $_POST['AAddress12'];
$AAddress22 = $_POST['AAddress22'];
$ACity2 = $_POST['ACity2'];
$AState2 = $_POST['AState2'];
$AZIP2 = $_POST['AZIP2'];
$ACountry = $_POST['ACountry'];
$AOtherCountry2 = $_POST['AOtherCountry2'];
$ATelephone2 = $_POST['ATelephone2'];
$AdateAvailable2 = $_POST['AdateAvailable2'];
$AEducation = $_POST['AEducation'];
$AOtherEducation2 = $_POST['AOtherEducation2'];
$ALicense2 = $_POST['ALicense2'];
$AArmed_Forces = $_POST['AArmed_Forces'];
$ABranch2 = $_POST['ABranch2'];
$AA18 = $_POST['AA18'];
$ALegal = $_POST['ALegal'];
$AState_ID = $_POST['AState_ID'];
$AViolations = $_POST['AViolations'];
$Atextarea1 = $_POST['Atextarea1'];
$AHeardFromEmployee2 = $_POST['AHeardFromEmployee2'];
$AHeardFromOther2 = $_POST['AHeardFromOther2'];
$APositionAppliedFor2 = $_POST['APositionAppliedFor2'];
$Atextarea2 = $_POST['Atextarea2'];
$E1EmployerName2 = $_POST['E1EmployerName2'];
$E1EmployerPhone2 = $_POST['E1EmployerPhone2'];
$E1EmployerAddress2 = $_POST['E1EmployerAddress2'];
$E1EmployerSupervisor2 = $_POST['E1EmployerSupervisor2'];
$E1EmployerPosition2 = $_POST['E1EmployerPosition2'];
$E1EmployerDates2 = $_POST['E1EmployerDates2'];
$E1textarea = $_POST['E1textarea'];
$E2EmployerName2 = $_POST['E2EmployerName2'];
$E2EmployerPhone2 = $_POST['E2EmployerPhone2'];
$E2EmployerAddress2 = $_POST['E2EmployerAddress2'];
$E2EmployerSupervisor2 = $_POST['E2EmployerSupervisor2'];
$E2EmployerPosition2 = $_POST['E2EmployerPosition2'];
$E2EmployerDates2 = $_POST['E2EmployerDates2'];
$E2textarea = $_POST['E2textarea'];
$E3EmployerName2 = $_POST['E3EmployerName2'];
$E3EmployerPhone2 = $_POST['E3EmployerPhone2'];
$E3EmployerAddress2 = $_POST['E3EmployerAddress2'];
$E3EmployerSupervisor2 = $_POST['E3EmployerSupervisor2'];
$E3EmployerPosition2 = $_POST['E3EmployerPosition2'];
$E3EmployerDates2 = $_POST['E3EmployerDates2'];
$E3textarea = $_POST['E3textarea'];
$body = "From: $name_field
EMail: $email_field
Message:
$message";
echo "Data has been submitted to $to!";
mail($to, $subject, $body);
} else {
echo "blarg!";
}
?>
the error i get is
(Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/home/web/users/XXXX/html/admin/employment-form.php on line 7)