onlinecvRegisteredNurse.php
Code: Select all
<form action="onlinecvMailRegisteredNurse.php" method="post" enctype="multipart/form-data" onsubmit="return check(frmRequest)" name="frmRequest" id="frmRequest">
<select name="title">
<option value="Choose Title">Choose Title </option>
<option value="Mr">Mr</option>
<option value="Miss">Miss</option>
<option value="Mrs">Mrs</option>
<option value="Ms">Ms</option>
<option value="Dr">Dr</option>
<option value="Prof">Prof</option>
</select><b style="color:#FF0000">*</b>
<input type="text" name="name" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="surname" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="address" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="address2" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="city" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="county" size="20" /><b style="color:#FF0000">*</b>
<select name="gender">
<option value="Choose Gender">Choose Gender </option>
<option value="Male">Male</option>
<option value="Female">Female</option>
</select><b style="color:#FF0000">*</b>
<select name="day">
<option value="Choose Day">Choose Day </option>
</select><b style="color:#FF0000">*</b>
<select name="month">
<option value="Choose Month">Choose Month</option>
</select><b style="color:#FF0000">*</b>
<select name="year">
<option value="Choose Year">Choose Year </option>
</select><b style="color:#FF0000">*</b>
<select name="nationality">
<option value="Choose Country">Choose Country </option>
</select><b style="color:#FF0000">*</b>
<input type="text" name="phone" size="15" /><b style="color:#FF0000">*</b>
<input type="text" name="mobile" size="15" />
<input type="text" name="email" size="20" /><b style="color:#FF0000">*</b>
<select name="educationstartday">
<option value="Choose Day">Choose Day </option>
</select><b style="color:#FF0000">*</b>
<select name="educationstartmonth">
<option value="Choose Month">Choose Month</option>
</select><b style="color:#FF0000">*</b>
<select name="educationstartyear">
<option value="Choose Year">Choose Year </option>
</select><b style="color:#FF0000">*</b>
</td>
</tr>
<tr>
<td></td>
<td>Finish Date:<br />
<select name="educationfinishday">
<option value="Choose Day">Choose Day </option>
</select><b style="color:#FF0000">*</b>
<select name="educationfinishmonth">
<option value="Choose Month">Choose Month</option>
</select><b style="color:#FF0000">*</b>
<select name="educationfinishyear">
<option value="Choose Year">Choose Year </option>
</select><b style="color:#FF0000">*</b></td>
<input type="text" name="educationschool" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="educationaddress" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="educationaddress2" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="educationaddress3" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="educationqualification" size="20" /><b style="color:#FF0000">*</b>
<select name="educationstartday2">
<option value="Choose Day">Choose Day </option>
</select>
<select name="educationstartmonth2">
<option value="Choose Month">Choose Month</option>
</select>
<select name="educationstartyear2">
<option value="Choose Year">Choose Year </option>
</select>
<select name="educationfinishday2">
<option value="Choose Day">Choose Day </option>
</select>
<select name="educationfinishmonth2">
</select>
<select name="educationfinishyear2">
<option value="Choose Year">Choose Year </option>
</select>
<input type="text" name="educationschool2" size="20" />
<input type="text" name="educationaddress21" size="20" />
<input type="text" name="educationaddress22" size="20" />
<input type="text" name="educationaddress23" size="20" />
<input type="text" name="educationqualification2" size="20" />
<select name="educationstartday3">
<option value="Choose Day">Choose Day </option>
</select>
<select name="educationstartmonth3">
<option value="Choose Month">Choose Month</option>
</select>
<select name="educationstartyear3">
<option value="Choose Year">Choose Year </option>
</select>
<select name="educationfinishday3">
<option value="Choose Day">Choose Day </option>
</select>
<select name="educationfinishmonth3">
<option value="Choose Month">Choose Month</option>
</select>
<select name="educationfinishyear3">
<option value="Choose Year">Choose Year </option>
</select>
<input type="text" name="educationschool3" size="20" />
<input type="text" name="educationaddress31" size="20" />
<input type="text" name="educationaddress32" size="20" />
<input type="text" name="educationaddress33" size="20" />
<input type="text" name="educationqualification3" size="20" />
<select name="employmentstartday">
<option value="Choose Day">Choose Day </option>
</select><b style="color:#FF0000">*</b>
<select name="employmentstartmonth">
<option value="Choose Month">Choose Month</option>
</select><b style="color:#FF0000">*</b>
<select name="employmentstartyear">
<option value="Choose Year">Choose Year </option>
</select><b style="color:#FF0000">*</b>
<select name="employmentfinishday">
<option value="Choose Day">Choose Day </option>
</select><b style="color:#FF0000">*</b>
<select name="employmentfinishmonth">
<option value="Choose Month">Choose Month</option>
</select><b style="color:#FF0000">*</b>
<select name="employmentfinishyear">
<option value="Choose Year">Choose Year </option>
</select><b style="color:#FF0000">*</b>
<input type="text" name="employmentemployer" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="employmentaddress" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="employmentaddress2" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="employmentaddress3" size="20" /><b style="color:#FF0000">*</b>
<textarea rows="5" cols="40" name="employmentdescription"></textarea><b style="color:#FF0000">*</b>
<select name="employmentstartday2">
<option value="Choose Day">Choose Day </option>
</select>
<select name="employmentstartmonth2">
<option value="Choose Month">Choose Month</option>
</select>
<select name="employmentstartyear2">
<option value="Choose Year">Choose Year </option>
</select>
<select name="employmentfinishday2">
<option value="Choose Day">Choose Day </option>
</select>
<select name="employmentfinishmonth2">
<option value="Choose Month">Choose Month</option>
</select>
<select name="employmentfinishyear2">
<option value="Choose Year">Choose Year </option>
</select>
<input type="text" name="employmentemployer2" size="20" />
<input type="text" name="employmentaddress21" size="20" /></td>
<input type="text" name="employmentaddress22" size="20" />
<input type="text" name="employmentaddress23" size="20" />
<textarea rows="5" cols="40" name="employmentdescription2"></textarea>
<select name="employmentstartday3">
<option value="Choose Day">Choose Day </option>
</select>
<select name="employmentstartmonth3">
<option value="Choose Month">Choose Month</option>
</select>
<select name="employmentstartyear3">
<option value="Choose Year">Choose Year </option>
</select>
<select name="employmentfinishday3">
<option value="Choose Day">Choose Day </option>
</select>
<select name="employmentfinishmonth3">
<option value="Choose Month">Choose Month</option>
</select>
<select name="employmentfinishyear3">
<option value="Choose Year">Choose Year </option>
</select>
<input type="text" name="employmentemployer3" size="20" />
<input type="text" name="employmentaddress31" size="20" />
<input type="text" name="employmentaddress32" size="20" />
<input type="text" name="employmentaddress33" size="20" />
<textarea rows="5" cols="40" name="employmentdescription3"></textarea>
<textarea rows="8" cols="40" name="skills"></textarea><b style="color:#FF0000">*</b>
<select name="titlereferee">
<option value="Choose Title">Choose Title </option>
<option value="Mr">Mr</option>
<option value="Miss">Miss</option>
<option value="Mrs">Mrs</option>
<option value="Ms">Ms</option>
<option value="Dr">Dr</option>
<option value="Prof">Prof</option>
</select><b style="color:#FF0000">*</b>
<select name="titlereferee2">
<option value="Choose Title">Choose Title </option>
<option value="Mr">Mr</option>
<option value="Miss">Miss</option>
<option value="Mrs">Mrs</option>
<option value="Ms">Ms</option>
<option value="Dr">Dr</option>
<option value="Prof">Prof</option>
</select><b style="color:#FF0000">*</b>
<input type="text" name="namereferee" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="namereferee2" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="surnamereferee" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="surnamereferee2" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="occupationreferee" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="occupationreferee2" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="addressreferee1" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="addressreferee2" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="addressreferee12" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="addressreferee22" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="addressreferee13" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="addressreferee23" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="cityreferee" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="cityreferee2" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="countyreferee" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="countyreferee2" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="phonereferee" size="20" /><b style="color:#FF0000">*</b>
<input type="text" name="phonereferee2" size="20" /><b style="color:#FF0000">*</b>
<textarea rows="8" cols="40" name="comments"></textarea><b style="color:#FF0000">*</b>
<input type="checkbox" name="termsandconditions" value="yes" /> I accept <a href="termsAndConditions.html">Terms & Conditions</a> <b style="color:#FF0000">*</b></td>
<input type="submit" name="Submit" value="Submit Form" />
<input name="reset" type="reset" value="Clear Form" />
</form>
Code: Select all
<?php
// get posted data into local variables
$today = date("D M d Y");
$space = " ";
$EmailFrom = Trim(stripslashes($_POST['email']));
$EmailTo = "ashebrian@hotmail.com";
$Subject2 = "CV RECIEVED from http://www.ealuspatherapy.com";
$title = Trim(stripslashes($_POST['title']));
$name = Trim(stripslashes($_POST['name']));
$surname = Trim(stripslashes($_POST['surname']));
$address = Trim(stripslashes($_POST['address']));
$address2 = Trim(stripslashes($_POST['address2']));
$city = Trim(stripslashes($_POST['city']));
$county = Trim(stripslashes($_POST['county']));
$gender = Trim(stripslashes($_POST['gender']));
$day = Trim(stripslashes($_POST['day']));
$month = Trim(stripslashes($_POST['month']));
$year = Trim(stripslashes($_POST['year']));
$nationality = Trim(stripslashes($_POST['nationality']));
$phone = Trim(stripslashes($_POST['phone']));
$mobile = Trim(stripslashes($_POST['mobile']));
$educationstartday = Trim(stripslashes($_POST['educationstartday']));
$educationstartmonth = Trim(stripslashes($_POST['educationstartmonth']));
$educationstartyear = Trim(stripslashes($_POST['educationstartyear']));
$educationfinishday = Trim(stripslashes($_POST['educationfinishday']));
$educationfinishmonth = Trim(stripslashes($_POST['educationfinishmonth']));
$educationfinishyear = Trim(stripslashes($_POST['educationfinishyear']));
$educationschool = Trim(stripslashes($_POST['educationschool']));
$educationaddress = Trim(stripslashes($_POST['educationaddress']));
$educationaddress2 = Trim(stripslashes($_POST['educationaddress2']));
$educationaddress3 = Trim(stripslashes($_POST['educationaddress3']));
$educationqualification = Trim(stripslashes($_POST['educationqualification']));
$educationstartday2 = Trim(stripslashes($_POST['educationstartday2']));
$educationstartmonth2 = Trim(stripslashes($_POST['educationstartmonth2']));
$educationstartyear2 = Trim(stripslashes($_POST['educationstartyear2']));
$educationfinishday2 = Trim(stripslashes($_POST['educationfinishday2']));
$educationfinishmonth2 = Trim(stripslashes($_POST['educationfinishmonth2']));
$educationfinishyear2 = Trim(stripslashes($_POST['educationfinishyear2']));
$educationschool2 = Trim(stripslashes($_POST['educationschool2']));
$educationaddress21 = Trim(stripslashes($_POST['educationaddress21']));
$educationaddress22 = Trim(stripslashes($_POST['educationaddress22']));
$educationaddress23 = Trim(stripslashes($_POST['educationaddress23']));
$educationqualification2 = Trim(stripslashes($_POST['educationqualification2']));
$educationstartday3 = Trim(stripslashes($_POST['educationstartday3']));
$educationstartmonth3 = Trim(stripslashes($_POST['educationstartmonth3']));
$educationstartyear3 = Trim(stripslashes($_POST['educationstartyear3']));
$educationfinishday3 = Trim(stripslashes($_POST['educationfinishday3']));
$educationfinishmonth3 = Trim(stripslashes($_POST['educationfinishmonth3']));
$educationfinishyear3 = Trim(stripslashes($_POST['educationfinishyear3']));
$educationschool3 = Trim(stripslashes($_POST['educationschool3']));
$educationaddress31 = Trim(stripslashes($_POST['educationaddress31']));
$educationaddress32 = Trim(stripslashes($_POST['educationaddress32']));
$educationaddress33 = Trim(stripslashes($_POST['educationaddress33']));
$educationqualification3 = Trim(stripslashes($_POST['educationqualification3']));
$employmentstartday = Trim(stripslashes($_POST['employmentstartday']));
$employmentstartmonth = Trim(stripslashes($_POST['employmentstartmonth']));
$employmentstartyear = Trim(stripslashes($_POST['employmentstartyear']));
$employmentfinishday = Trim(stripslashes($_POST['employmentfinishday']));
$employmentfinishmonth = Trim(stripslashes($_POST['employmentfinishmonth']));
$employmentfinishyear = Trim(stripslashes($_POST['employmentfinishyear']));
$employmentemployer = Trim(stripslashes($_POST['employmentemployer']));
$employmentaddress = Trim(stripslashes($_POST['employmentaddress']));
$employmentaddress2 = Trim(stripslashes($_POST['employmentaddress2']));
$employmentaddress3 = Trim(stripslashes($_POST['employmentaddress3']));
$employmentdescription = Trim(stripslashes($_POST['employmentdescription']));
$employmentstartday2 = Trim(stripslashes($_POST['employmentstartday2']));
$employmentstartmonth2 = Trim(stripslashes($_POST['employmentstartmonth2']));
$employmentstartyear2 = Trim(stripslashes($_POST['employmentstartyear2']));
$employmentfinishday2 = Trim(stripslashes($_POST['employmentfinishday2']));
$employmentfinishmonth2 = Trim(stripslashes($_POST['employmentfinishmonth2']));
$employmentfinishyear2 = Trim(stripslashes($_POST['employmentfinishyear2']));
$employmentemployer2 = Trim(stripslashes($_POST['employmentemployer2']));
$employmentaddress21 = Trim(stripslashes($_POST['employmentaddress21']));
$employmentaddress22 = Trim(stripslashes($_POST['employmentaddress22']));
$employmentaddress23 = Trim(stripslashes($_POST['employmentaddress23']));
$employmentdescription2 = Trim(stripslashes($_POST['employmentdescription2']));
$employmentstartday3 = Trim(stripslashes($_POST['employmentstartday3']));
$employmentstartmonth3 = Trim(stripslashes($_POST['employmentstartmonth3']));
$employmentstartyear3 = Trim(stripslashes($_POST['employmentstartyear3']));
$employmentfinishday3 = Trim(stripslashes($_POST['employmentfinishday3']));
$employmentfinishmonth3 = Trim(stripslashes($_POST['employmentfinishmonth3']));
$employmentfinishyear3 = Trim(stripslashes($_POST['employmentfinishyear3']));
$employmentemployer3 = Trim(stripslashes($_POST['employmentemployer3']));
$employmentaddress31 = Trim(stripslashes($_POST['employmentaddress31']));
$employmentaddress32 = Trim(stripslashes($_POST['employmentaddress32']));
$employmentaddress33 = Trim(stripslashes($_POST['employmentaddress33']));
$employmentdescription3 = Trim(stripslashes($_POST['employmentdescription3']));
$skills = Trim(stripslashes($_POST['skills']));
$titlereferee = Trim(stripslashes($_POST['titlereferee']));
$titlereferee2 = Trim(stripslashes($_POST['titlereferee2']));
$namereferee = Trim(stripslashes($_POST['namereferee']));
$namereferee2 = Trim(stripslashes($_POST['namereferee2']));
$surnamereferee = Trim(stripslashes($_POST['surnamereferee']));
$surnamereferee2 = Trim(stripslashes($_POST['surnamereferee2']));
$occupationereferee = Trim(stripslashes($_POST['occupationreferee']));
$occupationreferee2 = Trim(stripslashes($_POST['occupationreferee2']));
$addressreferee1 = Trim(stripslashes($_POST['addressreferee1']));
$addressreferee12 = Trim(stripslashes($_POST['addressreferee12']));
$addressreferee13 = Trim(stripslashes($_POST['addressreferee13']));
$addressreferee2 = Trim(stripslashes($_POST['addressreferee2']));
$addressreferee22 = Trim(stripslashes($_POST['addressreferee22']));
$addressreferee23 = Trim(stripslashes($_POST['addressreferee23']));
$cityreferee = Trim(stripslashes($_POST['cityreferee']));
$cityreferee2 = Trim(stripslashes($_POST['cityreferee2']));
$countyreferee = Trim(stripslashes($_POST['countyreferee']));
$countyreferee2 = Trim(stripslashes($_POST['countyreferee2']));
$phonereferee = Trim(stripslashes($_POST['phonereferee']));
$phonereferee2 = Trim(stripslashes($_POST['phonereferee2']));
$comments = Trim(stripslashes($_POST['comments']));
$termsandconditions = Trim(stripslashes($_POST['termsandconditions']));
// validation
$validationOK=true;
if (Trim($EmailFrom)=="") $validationOK=false;
if (Trim($title)=="Choose Title") $validationOK=false;
if (Trim($name)=="") $validationOK=false;
if (Trim($surname)=="") $validationOK=false;
if (Trim($address)=="") $validationOK=false;
if (Trim($address2)=="") $validationOK=false;
if (Trim($city)=="") $validationOK=false;
if (Trim($county)=="") $validationOK=false;
if (Trim($gender)=="Choose Gender") $validationOK=false;
if (Trim($day)=="Choose Day") $validationOK=false;
if (Trim($month)=="Choose Month") $validationOK=false;
if (Trim($year)=="Choose Year") $validationOK=false;
if (Trim($nationality)=="Choose Country") $validationOK=false;
if (Trim($phone)=="") $validationOK=false;
if (Trim($educationstartday)=="Choose Day") $validationOK=false;
if (Trim($educationstartmonth)=="Choose Month") $validationOK=false;
if (Trim($educationstartyear)=="Choose Year") $validationOK=false;
if (Trim($educationfinishday)=="Choose Day") $validationOK=false;
if (Trim($educationfinishmonth)=="Choose Month") $validationOK=false;
if (Trim($educationfinishyear)=="Choose Year") $validationOK=false;
if (Trim($educationschool)=="") $validationOK=false;
if (Trim($educationaddress)=="") $validationOK=false;
if (Trim($educationaddress2)=="") $validationOK=false;
if (Trim($educationaddress3)=="") $validationOK=false;
if (Trim($educationqualification)=="") $validationOK=false;
if (Trim($employmentstartday)=="Choose Day") $validationOK=false;
if (Trim($employmentstartmonth)=="Choose Month") $validationOK=false;
if (Trim($employmentstartyear)=="Choose Year") $validationOK=false;
if (Trim($employmentfinishday)=="Choose Day") $validationOK=false;
if (Trim($employmentfinishmonth)=="Choose Month") $validationOK=false;
if (Trim($employmentfinishyear)=="Choose Year") $validationOK=false;
if (Trim($employmentemployer)=="") $validationOK=false;
if (Trim($employmentaddress)=="") $validationOK=false;
if (Trim($employmentaddress2)=="") $validationOK=false;
if (Trim($employmentaddress3)=="") $validationOK=false;
if (Trim($employmentdescription)=="") $validationOK=false;
if (Trim($skills)=="") $validationOK=false;
if (Trim($titlereferee)=="Choose title") $validationOK=false;
if (Trim($titlereferee2)=="") $validationOK=false;
if (Trim($namereferee)=="") $validationOK=false;
if (Trim($namereferee2)=="") $validationOK=false;
if (Trim($surnamereferee)=="") $validationOK=false;
if (Trim($sunamereferee2)=="") $validationOK=false;
if (Trim($occupationreferee)=="") $validationOK=false;
if (Trim($occupationreferee2)=="") $validationOK=false;
if (Trim($addressreferee1)=="") $validationOK=false;
if (Trim($addressreferee12)=="") $validationOK=false;
if (Trim($addressreferee13)=="") $validationOK=false;
if (Trim($addressreferee2)=="") $validationOK=false;
if (Trim($addressreferee22)=="") $validationOK=false;
if (Trim($addressreferee23)=="") $validationOK=false;
if (Trim($cityreferee)=="") $validationOK=false;
if (Trim($cityreferee2)=="") $validationOK=false;
if (Trim($countyreferee)=="") $validationOK=false;
if (Trim($countyreferee2)=="") $validationOK=false;
if (Trim($phonereferee)=="") $validationOK=false;
if (Trim($phonereferee2)=="") $validationOK=false;
if (Trim($termsandconditions)=="") $validationOK=false;
if (!$validationOK) {
print "<meta http-equiv=\"refresh\" content=\"0;URL=errorRecruitment.html\">";
exit;
}
// prepare email body text
$Body = "";
$Body .= "A new CV has been sent for the position as a Registered Nurse.\n";
$Body .= "A summary of this his/her CV appears below.\n";
$Body .= "===================================================================== \n";
$Body .= "APPLIED DATE: $today \n";
$Body .= "===================================================================== \n";
$Body .= "===================================================================== \n";
$Body .= "PERSONAL DETAILS: \n";
$Body .= "===================================================================== \n";
$Body .= "\n";
$Body .= "Name: ";
$Body .= $title;
$Body .= $space;
$Body .= $name;
$Body .= $space;
$Body .= $surname;
$Body .= "\n";
$Body .= "\n";
$Body .= "Address: ";
$Body .= $address;
$Body .= "\n";
$Body .= $address2;
$Body .= "\n";
$Body .= $city;
$Body .= "\n";
$Body .= $county;
$Body .= "\n";
$Body .= "\n";
$Body .= "Gender: ";
$Body .= $gender;
$Body .= "\n";
$Body .= "\n";
$Body .= "Date of Birth: ";
$Body .= $day;
$Body .= $space;
$Body .= $month;
$Body .= $space;
$Body .= $year;
$Body .= "\n";
$Body .= "\n";
$Body .= "Nationality: ";
$Body .= $nationality;
$Body .= "\n";
$Body .= "\n";
$Body .= "Phone Number: ";
$Body .= $phone;
$Body .= "\n";
$Body .= "\n";
$Body .= "Mobile Number: ";
$Body .= $mobile;
$Body .= "\n";
$Body .= "\n";
$Body .= "E-mail address: ";
$Body .= $EmailFrom;
$Body .= "\n";
$Body .= "\n";
$Body .= "===================================================================== \n";
$Body .= "EDUCATION DETAILS: \n";
$Body .= "===================================================================== \n";
$Body .= "\n";
$Body .= "\n";
$Body .= "Date (From - To): ";
$Body .= $educationstartday;
$Body .= $space;
$Body .= $educationstartmonth;
$Body .= $space;
$Body .= $educationstartyear;
$Body .= $space;
$Body .= " - ";
$Body .= $space;
$Body .= $educationfinishday;
$Body .= $space;
$Body .= $educationfinishmonth;
$Body .= $space;
$Body .= $educationfinishyear;
$Body .= "\n";
$Body .= "\n";
$Body .= "Address: \n";
$Body .= $educationschool;
$Body .= "\n";
$Body .= $educationaddress;
$Body .= "\n";
$Body .= $educationaddress2;
$Body .= "\n";
$Body .= $educationaddress3;
$Body .= "\n";
$Body .= "\n";
$Body .= "Qualification: \n";
$Body .= $educationqualification;
$Body .= "\n";
$Body .= "------------------------------------------------------------------";
$Body .= "\n";
$Body .= "\n";
$Body .= "Date (From - To): ";
$Body .= $educationstartday2;
$Body .= $space;
$Body .= $educationstartmonth2;
$Body .= $space;
$Body .= $educationstartyear2;
$Body .= $space;
$Body .= " - ";
$Body .= $space;
$Body .= $educationfinishday2;
$Body .= $space;
$Body .= $educationfinishmonth2;
$Body .= $space;
$Body .= $educationfinishyear2;
$Body .= "\n";
$Body .= "\n";
$Body .= "Address: \n";
$Body .= $educationschool2;
$Body .= "\n";
$Body .= $educationaddress21;
$Body .= "\n";
$Body .= $educationaddress22;
$Body .= "\n";
$Body .= $educationaddress23;
$Body .= "\n";
$Body .= "\n";
$Body .= "Qualification: \n";
$Body .= $educationqualification2;
$Body .= "\n";
$Body .= "------------------------------------------------------------------";
$Body .= "\n";
$Body .= "\n";
$Body .= "Date (From - To): ";
$Body .= $educationstartday3;
$Body .= $space;
$Body .= $educationstartmonth3;
$Body .= $space;
$Body .= $educationstartyear3;
$Body .= $space;
$Body .= " - ";
$Body .= $space;
$Body .= $educationfinishday3;
$Body .= $space;
$Body .= $educationfinishmonth3;
$Body .= $space;
$Body .= $educationfinishyear3;
$Body .= "\n";
$Body .= "\n";
$Body .= "Address: \n";
$Body .= $educationschool3;
$Body .= "\n";
$Body .= $educationaddress31;
$Body .= "\n";
$Body .= $educationaddress32;
$Body .= "\n";
$Body .= $educationaddress33;
$Body .= "\n";
$Body .= "\n";
$Body .= "Qualification: \n";
$Body .= $educationqualification3;
$Body .= "\n";
$Body .= "\n";
$Body .= "===================================================================== \n";
$Body .= "EMPLOYMENT DETAILS: \n";
$Body .= "===================================================================== \n";
$Body .= "\n";
$Body .= "\n";
$Body .= "Date (From - To): ";
$Body .= $employmentstartday;
$Body .= $space;
$Body .= $employmentstartmonth;
$Body .= $space;
$Body .= $employmentstartyear;
$Body .= $space;
$Body .= " - ";
$Body .= $space;
$Body .= $employmentfinishday;
$Body .= $space;
$Body .= $employmentfinishmonth;
$Body .= $space;
$Body .= $employmentfinishyear;
$Body .= "\n";
$Body .= "\n";
$Body .= "Address: \n";
$Body .= $employmentemployer;
$Body .= "\n";
$Body .= $employmentaddress;
$Body .= "\n";
$Body .= $employmentaddress2;
$Body .= "\n";
$Body .= $employmentaddress3;
$Body .= "\n";
$Body .= "\n";
$Body .= "JOB DESCRIPTION:\n";
$Body .= $employmentdescription;
$Body .= "\n";
$Body .= "------------------------------------------------------------------";
$Body .= "\n";
$Body .= "\n";
$Body .= "Date (From - To): ";
$Body .= $employmentstartday2;
$Body .= $space;
$Body .= $employmentstartmonth2;
$Body .= $space;
$Body .= $employmentstartyear2;
$Body .= $space;
$Body .= " - ";
$Body .= $space;
$Body .= $employmentfinishday2;
$Body .= $space;
$Body .= $employmentfinishmonth2;
$Body .= $space;
$Body .= $employmentfinishyear2;
$Body .= "\n";
$Body .= "\n";
$Body .= "Address: \n";
$Body .= $employmentemployer2;
$Body .= "\n";
$Body .= $employmentaddress21;
$Body .= "\n";
$Body .= $employmentaddress22;
$Body .= "\n";
$Body .= $employmentaddress23;
$Body .= "\n";
$Body .= "\n";
$Body .= "JOB DESCRIPTION:\n";
$Body .= $employmentdescription2;
$Body .= "\n";
$Body .= "------------------------------------------------------------------";
$Body .= "\n";
$Body .= "\n";
$Body .= "Date (From - To): ";
$Body .= $employmentstartday3;
$Body .= $space;
$Body .= $employmentstartmonth3;
$Body .= $space;
$Body .= $employmentstartyear3;
$Body .= $space;
$Body .= " - ";
$Body .= $space;
$Body .= $employmentfinishday3;
$Body .= $space;
$Body .= $employmentfinishmonth3;
$Body .= $space;
$Body .= $employmentfinishyear3;
$Body .= "\n";
$Body .= "\n";
$Body .= "Address: \n";
$Body .= $employmentemployer3;
$Body .= "\n";
$Body .= $employmentaddress31;
$Body .= "\n";
$Body .= $employmentaddress32;
$Body .= "\n";
$Body .= $employmentaddress33;
$Body .= "\n";
$Body .= "\n";
$Body .= "JOB DESCRIPTION:\n";
$Body .= $employmentdescription3;
$Body .= "\n";
$Body .= "\n";
$Body .= "===================================================================== \n";
$Body .= "SKILLS DETAILS: \n";
$Body .= "===================================================================== \n";
$Body .= "\n";
$Body .= "\n";
$Body .= $skills;
$Body .= "\n";
$Body .= "\n";
$Body .= "===================================================================== \n";
$Body .= "REFEREES DETAILS: \n";
$Body .= "===================================================================== \n";
$Body .= "\n";
$Body .= "\n";
$Body .= "Referee 1: \n";
$Body .= $titlereferee;
$Body .= $space;
$Body .= $namereferee;
$Body .= $space;
$Body .= $surnamereferee;
$Body .= "\n";
$Body .= $occupationreferee;
$Body .= "\n";
$Body .= $addressreferee1;
$Body .= "\n";
$Body .= $addressreferee12;
$Body .= "\n";
$Body .= $addressreferee13;
$Body .= "\n";
$Body .= $cityreferee;
$Body .= "\n";
$Body .= $countyreferee;
$Body .= "\n";
$Body .= $phonereferee;
$Body .= "\n";
$Body .= "------------------------------------------------------------------";
$Body .= "\n";
$Body .= "\n";
$Body .= "Referee 2: \n";
$Body .= $titlereferee2;
$Body .= $space;
$Body .= $namereferee2;
$Body .= $space;
$Body .= $surnamereferee2;
$Body .= "\n";
$Body .= $occupationreferee2;
$Body .= "\n";
$Body .= $addressreferee2;
$Body .= "\n";
$Body .= $addressreferee22;
$Body .= "\n";
$Body .= $addressreferee23;
$Body .= "\n";
$Body .= $cityreferee2;
$Body .= "\n";
$Body .= $countyreferee2;
$Body .= "\n";
$Body .= $phonereferee2;
$Body .= "\n";
$Body .= "===================================================================== \n";
$Body .= "COMMENTS: \n";
$Body .= "===================================================================== \n";
$Body .= "\n";
$Body .= "\n";
$Body .= $comments;
$Body .= "\n";
$Body .= "\n";
$Body .= "===================================================================== \n";
$Body .= "\n";
$Body .= "\n";
$Body .= "\n";
$Body .= "\n";
$Body .= "\n";
$Body .= "This email was send automatically from the website http://www.ealuspatherapy.com. \n";
$Body .= "after the customer submitted his/her CV. Please read carefully the \n";
$Body .= "customers information and SEND a CONFIRMATION EMAIL regarding \n";
$Body .= "their jobs they applied for. \n";
// send email
$success = mail($EmailTo, $Subject2, $Body, "From: <$EmailFrom>");
// redirect to success page
if ($success){
print "<meta http-equiv=\"refresh\" content=\"0;URL=thankYouRecruitent.html\">";
}
else{
print "<meta http-equiv=\"refresh\" content=\"0;URL=errorRecruitment.html\">";
}
?>