Jump to content

TinaOConnell

Members
  • Posts

    30
  • Joined

  • Last visited

Posts posted by TinaOConnell

  1. SOLVED.. WAS MISSING ONE LITTLE ' !!!! 

    WHAT A HOT MESS.. GLAD IT IS DONE.. FOR THOSE OF YOU HAVING THIS SAME ISSUE.. HERE IS MY FINAL WORKING CODE WITH NO ERRORS YEAH!!!!!!! 

    <?php 
    //send data to sql database first
    
    $username="USERNAME HERE";
    $password="PASSWORD HERE";
    $database="DB HERE";
    $server="IP ADDRESS HERE";
    
    $link=mysqli_connect ($server, $username, $password); 
    if (!$link)  { 
      die('Could not connect: ' . mysqli_error()); 
      } 
    
    mysqli_select_db( $link, $database); 
    
    $APPLICANT_TO_COMPLETE_FirstName = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_FirstName']);
    $APPLICANT_TO_COMPLETE_LastName = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_LastName']);
    $DateofApplication = mysqli_real_escape_string($link, $_POST['DateofApplication']);
    $APPLICANT_TO_COMPLETE_PhoneNumber = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_PhoneNumber']);
    $APPLICANT_TO_COMPLETE_SecondaryPhone = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_SecondaryPhone']);
    $License1 = mysqli_real_escape_string($link, $_POST['License1']);
    $APPLICANT_TO_COMPLETE_CurrentAddress = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_CurrentAddress']);
    $APPLICANT_TO_COMPLETE_CurrentCity = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_CurrentCity']);
    $APPLICANT_TO_COMPLETE_CurrentState = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_CurrentState']);
    $APPLICANT_TO_COMPLETE_CurrentZip = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_CurrentZip']);
    
    $result = mysqli_query($link, "
      INSERT INTO Driver_applicants (
      FirstName, 
      LastName, 
      Applicationdate, 
      Phone, 
      AltPhone, 
      DL, 
      StreetAddress, 
      City, 
      State, 
      Zip) 
      VALUES (
    '{$APPLICANT_TO_COMPLETE_FirstName}',
    '{$APPLICANT_TO_COMPLETE_LastName}',
    '{$DateofApplication}',
    '{$APPLICANT_TO_COMPLETE_PhoneNumber}',
    '{$APPLICANT_TO_COMPLETE_SecondaryPhone}',
    '{$License1}',
    '{$APPLICANT_TO_COMPLETE_CurrentAddress}',
    '{$APPLICANT_TO_COMPLETE_CurrentCity}',
    '{$APPLICANT_TO_COMPLETE_CurrentState}',
    '{$APPLICANT_TO_COMPLETE_CurrentZip}')"
    ); 
    
    if (!$result)
      { 
      die('Error: ' . mysqli_error($link)); 
      } 
    
    //now send email
    $to = 'PUT EMAIL ADDRESS TO SEND THIS FORM TO HERE';
    $from = $_POST['ApplicantName'];
    // $status = $_POST['Project_status'];
    /* subject */ 
    $subject = "Application For Employment Web Submission"; 
    /* message */ 
    $message = '<html> 
    <head> 
    <title>Application For Employment Web Submission</title> 
    </head> 
    <body> 
    <p>Dear '.$to.',</p> 
    <table>
    <tr> 
    <td colspan="2">"Employment Application Details:"</td>
    </tr><tr> 
     <td>Applicant Name: </td><td>'.$_POST['ApplicantName'].'</td>  
     </tr>  <tr> 
      <td>Date of Application: </td><td>'.$_POST['DateofApplication'].'</td>
    </tr><tr> 
     <td>Company: </td><td>'.$_POST['Company'].'</td>  
    </tr><tr> 
    <td>Address: </td><td>'.$_POST['Address'].'</td>  
    </tr><tr> 
     <td>Signature: </td><td>'.$_POST['Signature1'].'</td>  
    </tr><tr> 
     <td>Date: </td><td>'.$_POST['Date'].'</td>  
    </tr>
    
    <tr> 
                      <td></h3><strong> FOR COMPANY USE</strong> </h3></td>  
    </tr>
    
    <td> </td>
    <tr> 
     <td>APPLICANT HIRED: </td><td>'.$_POST['APPLICANTHIRED'].'</td>  
    </tr>
    <tr> 
     <td>District: </td><td>'.$_POST['District'].'</td>  
    </tr>
    <tr> 
     <td>DATE EMPLOYED: </td><td>'.$_POST['DATEEMPLOYED'].'</td>  
    </tr>
    <tr> 
     <td>Interviewing Manager: </td><td>'.$_POST['InterviewingManager'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['InterviewingManager_Signature'].'</td>  
    </tr>
    <tr> 
     <td>Human Resources: </td><td>'.$_POST['HumanResources'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['HumanResources_Signature'].'</td>  
    </tr>
    <td> </td>
    
    
    <tr> 
                    </h3>  <strong> <td>APPLICANT TO COMPLETE</h3></strong></td>  
    </tr>
    <tr> 
     <td>LastName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_LastName'].'</td>  
    </tr><tr> 
     <td>FirstName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_FirstName'].'</td>  
    </tr><tr> 
     <td>SSN: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SSN'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Secondary Phone: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SecondaryPhone'].'</td>  
    </tr><tr> 
     <td>Position(s) applied for: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Position_applied__for'].'</td>  
    </tr><tr> 
     <td>Rate of pay expected: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Rate_of_pay_expected'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Current<br />
                                Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentAddress'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentCity'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentState'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentZip'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentHowLong'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Previous Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip1'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong1'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip2'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong2'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip3'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong3'].'</td>  
    </tr>
    
    
    <td> </td>
    <tr> 
     <td>Do you have the legal right to work in the United States? : </td><td>'.$_POST['Do_you_have_the_legal_right_to_work_in_the_United_States'].'</td>  
    </tr><tr> 
     <td>Date of Birth: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousDate_of_Birth'].'</td>  
    </tr><tr> 
     <td>Can you provide proof of age?: </td><td>'.$_POST['Can_you_provide_proof_of_age'].'</td>  
    </tr><tr> 
     <td>Have you worked for this company before?: </td><td>'.$_POST['Have_you_worked_for_this_company_before'].'</td>  
    </tr><tr> 
     <td>Where?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousWhere'].'</td>  
    </tr>
    <tr> 
     <td>Are you currently employed?: </td><td>'.$_POST['Are_you_currently_employed'].'</td>  
    </tr><tr> 
     <td>How were you referred to the company?: </td><td>'.$_POST['How_were_you_referred_to_the_company'].'</td>  
    </tr><tr> 
     <td>If yes, explain if you wish: </td><td>'.$_POST['If_yes_explain_if_you_wish'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td><h3><strong>EMPLOYMENT HISTORY</strong></h3></td>  
    </tr>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    
     <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer1'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom1'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To1'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip1'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson1'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber1'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld1'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage1'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving1'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed1'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing1'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer2'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom2'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To2'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip2'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson2'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber2'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld2'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage2'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving2'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed2'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing2'].'</td>  
     </tr>
    <td> </td>
    
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer3'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom3'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To3'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip3'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson3'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber3'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld3'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage3'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving3'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed3'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing3'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer4'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom4'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To4'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address4'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City4'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State4'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip4'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson4'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber4'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld4'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage4'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving4'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed4'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    <td> </td>
    <td><h3><strong>ACCIDENT RECORD</strong> for past 3 years or more (attach sheet if more space is required). If non, write none.</h3></td> 
    <td> </td> 
    <tr> 
     <td>Last Accident: </td><td>'.$_POST['Last_Accident1'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous11'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous12'].'</td>  
    </tr>
    
    <td> </td>
    <td><h3><strong>TRAFFIC CONVICTIONS</strong> and forfeitures for the past 3 years (other than parking violations). If none, write none.</h3></td> 
    <tr> 
     <td>Last Violation: </td><td>'.$_POST['Last_Accident2'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous21'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous22'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous23'].'</td>  
    </tr>
    
    
    <tr> 
     <td>Have you EVER been convicted of a DUI, DWI and/or DUBAL?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_DUI_DWI_and_or_DUBAL'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted for reckless driving?: </td><td>'.$_POST['Have_you_EVER_been_convicted_for_reckless_driving'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of fleeing or attempting to elude a police officer?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_fleeing_or_attempting_to_elude_a_police_officer'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of leaving the scene of an accident?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_leaving_the_scene_of_an_accident'].'</td>  
    </tr>
    
    <tr> 
     <td>Have you EVER been convicted of a railroad crossing violation?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_railroad_crossing_violation'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of passing a school bus while it is unloading or loading?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_passing_a_school_bus_while_it_is_unloading_or_loading'].'</td>  
    </tr><tr> 
     <td>Has your license EVER been suspended or revoked?: </td><td>'.$_POST['Has_your_license_EVER_been_suspended_or_revoked'].'</td>  
    </tr><tr> 
     <td>If so, please explain:: </td><td>'.$_POST['If_yes_explain_if_you_wish1'].'</td>  
    </tr><tr> 
     <td>Have you ever been convicted of a felony?: </td><td>'.$_POST['Have_you_ever_been_convicted_of_a_felony'].'</td>  
    </tr><tr> 
     <td>If so, please explain: </td><td>'.$_POST['If_yes_explain_if_you_wish2'].'</td>  
    </tr>
    <td> </td>
    
    
    
    <td> <h3>  <strong>EXPERIENCE AND QUALIFICATIONS - DRIVER</strong></h3></td> 
    <td> </td>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State1'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License1'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements1'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration1'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State2'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License2'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements2'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration2'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State3'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License3'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements3'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration3'].'</td>  
    </tr>
    <tr> 
     <td>A. Have you ever been denied a licens, permit or privilege to operate a motor vehicle?: </td><td>'.$_POST['Have_you_ever_been_denied_a_license'].'</td>  
    </tr>
    <tr> 
     <td>Please list any other driving experience (equipment type & approximate dates/miles driven): </td><td>'.$_POST['If_yes_explain_if_you_wish3'].'</td>  
    </tr>
    <tr> 
     <td><strong>Education </strong>listing highest grade completed and any degrees earned </td><td>'.$_POST['listing_highest_grade_completed_and_any_degrees_earned'].'</td>  
    </tr>
    
    <td> </td>
    
     <tr> 
     <td>Signature: </td><td>'.$_POST['Signature'].'</td>  
    </tr>
     <tr> 
     <td>Date: </td><td>'.$_POST['Date1'].'</td>  
    </tr>
    
     <td> </td>
    </tr>
    </table> 
    
    </body> 
    </html>';
    /* To send HTML mail, set the Content-type header. */ 
    $headers  = "MIME-Version: 1.0\r\n"; 
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
    $headers .= "From: " . $from . "\r\n"; 
    /* and now mail it */ 
    /*echo $message; die;*/
    @mail($to, $subject, $message, $headers);
    
    echo "<h4>Your message has been sent to us with your full application details.<br />
                <span>We will reply soon as soon as possible to follow up with you on our hiring process.  Thank you for considering A&S Transportation, Inc. for employment.</span></h4>";
    
    
    mysqli_close($link); 
    ?>
    
    
    

    THANK YOU SO MUCH FOR ALL CODERS WHO HELPED.. 

    PROBLEM SOLVED!!!

  2. I could have done the data entry myself for 5 months for the time it took me to eliminate the data entry on this stupid form.. I am so over looking at code.. I need help.. I want this done.. Please help me I have provided ALLL code.. can you modify it how you are sure it would work, let me test it and if it works charge me.. 

    Give me a price to do it right? 

  3. besides.. I tried that too and getting the same error message now.. 

    Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{APPLICANT_TO_COMPLETE_LastName}', '{DateofApplication}', '{APPLICANT_TO_COMPL' at line 13

  4. Miko, 

     

    I tried that four posts ago.. and I got help from another coder who provided that update.. which eliminated one of the error messages.. 

     

    AT THIS POINT.. I want to be done.. this is something that I would like to hire out to be done.. HOW MUCH ?? ANYONE?? 

  5. I think I understand.. his idea would be better and faster but I already did your suggestion.. so.. here goes.. 

     

    I am still getting NO ERROR MESSAGE but the data is not going into the database AT ALL!!!   It is connecting per the log on my cpanel.. but nothing is happening after that. 

     

    I checked the names of each field.. checked EVERYTHING.. I need to be done with this project.  Can you please help me.. Here is the code I am left with.. 

    <?php 
    //send data to sql database first
    
    $username="user";
    $password="pass";
    $database="db";
    $server="ip";
    
    $link=mysqli_connect ($server, $username, $password); 
    if (!$link)  { 
      die('Could not connect: ' . mysqli_error()); 
      } 
    
    mysqli_select_db( $link, $database); 
    
    $APPLICANT_TO_COMPLETE_FirstName = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_FirstName']);
    $APPLICANT_TO_COMPLETE_LastName = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_LastName']);
    $DateofApplication = mysqli_real_escape_string($link, $_POST['DateofApplication']);
    $APPLICANT_TO_COMPLETE_PhoneNumber = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_PhoneNumber']);
    $APPLICANT_TO_COMPLETE_SecondaryPhone = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_SecondaryPhone']);
    $License1 = mysqli_real_escape_string($link, $_POST['License1']);
    $APPLICANT_TO_COMPLETE_CurrentAddress = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_CurrentAddress']);
    $APPLICANT_TO_COMPLETE_CurrentCity = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_CurrentCity']);
    $APPLICANT_TO_COMPLETE_CurrentState = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_CurrentState']);
    $APPLICANT_TO_COMPLETE_CurrentZip = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_CurrentZip']);
    
    $result = mysqli_query($link, "INSERT INTO Driver_applicants (FirstName, LastName, Applicationdate, Phone, AltPhone, DL, StreetAddress, City, State, Zip) VALUES ('{APPLICANT_TO_COMPLETE_FirstName},'{APPLICANT_TO_COMPLETE_LastName}','{DateofApplication}','{APPLICANT_TO_COMPLETE_PhoneNumber}','{APPLICANT_TO_COMPLETE_SecondaryPhone}','{License1}','{APPLICANT_TO_COMPLETE_CurrentAddress}','{APPLICANT_TO_COMPLETE_CurrentCity}','{APPLICANT_TO_COMPLETE_CurrentState}','{APPLICANT_TO_COMPLETE_CurrentZip}'"); 
    
    
    if (!result)
      { 
      die('Error: ' . mysqli_error()); 
      } 
    
    //now send email to applications@aandstransportation.com
    $to = 'applications@aandstransportation.com';
    $from = $_POST['ApplicantName'];
    // $status = $_POST['Project_status'];
    /* subject */ 
    $subject = "Application For Employment Web Submission"; 
    /* message */ 
    $message = '<html> 
    <head> 
    <title>Application For Employment Web Submission</title> 
    </head> 
    <body> 
    <p>Dear '.$to.',</p> 
    <table>
    <tr> 
    <td colspan="2">"Employment Application Details:"</td>
    </tr><tr> 
     <td>Applicant Name: </td><td>'.$_POST['ApplicantName'].'</td>  
     </tr>  <tr> 
      <td>Date of Application: </td><td>'.$_POST['DateofApplication'].'</td>
    </tr><tr> 
     <td>Company: </td><td>'.$_POST['Company'].'</td>  
    </tr><tr> 
    <td>Address: </td><td>'.$_POST['Address'].'</td>  
    </tr><tr> 
     <td>Signature: </td><td>'.$_POST['Signature1'].'</td>  
    </tr><tr> 
     <td>Date: </td><td>'.$_POST['Date'].'</td>  
    </tr>
    
    <tr> 
                      <td></h3><strong> FOR COMPANY USE</strong> </h3></td>  
    </tr>
    
    <td> </td>
    <tr> 
     <td>APPLICANT HIRED: </td><td>'.$_POST['APPLICANTHIRED'].'</td>  
    </tr>
    <tr> 
     <td>District: </td><td>'.$_POST['District'].'</td>  
    </tr>
    <tr> 
     <td>DATE EMPLOYED: </td><td>'.$_POST['DATEEMPLOYED'].'</td>  
    </tr>
    <tr> 
     <td>Interviewing Manager: </td><td>'.$_POST['InterviewingManager'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['InterviewingManager_Signature'].'</td>  
    </tr>
    <tr> 
     <td>Human Resources: </td><td>'.$_POST['HumanResources'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['HumanResources_Signature'].'</td>  
    </tr>
    <td> </td>
    
    
    <tr> 
                    </h3>  <strong> <td>APPLICANT TO COMPLETE</h3></strong></td>  
    </tr>
    <tr> 
     <td>LastName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_LastName'].'</td>  
    </tr><tr> 
     <td>FirstName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_FirstName'].'</td>  
    </tr><tr> 
     <td>SSN: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SSN'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Secondary Phone: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SecondaryPhone'].'</td>  
    </tr><tr> 
     <td>Position(s) applied for: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Position_applied__for'].'</td>  
    </tr><tr> 
     <td>Rate of pay expected: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Rate_of_pay_expected'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Current<br />
                                Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentAddress'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentCity'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentState'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentZip'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentHowLong'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Previous Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip1'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong1'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip2'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong2'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip3'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong3'].'</td>  
    </tr>
    
    
    <td> </td>
    <tr> 
     <td>Do you have the legal right to work in the United States? : </td><td>'.$_POST['Do_you_have_the_legal_right_to_work_in_the_United_States'].'</td>  
    </tr><tr> 
     <td>Date of Birth: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousDate_of_Birth'].'</td>  
    </tr><tr> 
     <td>Can you provide proof of age?: </td><td>'.$_POST['Can_you_provide_proof_of_age'].'</td>  
    </tr><tr> 
     <td>Have you worked for this company before?: </td><td>'.$_POST['Have_you_worked_for_this_company_before'].'</td>  
    </tr><tr> 
     <td>Where?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousWhere'].'</td>  
    </tr>
    <tr> 
     <td>Are you currently employed?: </td><td>'.$_POST['Are_you_currently_employed'].'</td>  
    </tr><tr> 
     <td>How were you referred to the company?: </td><td>'.$_POST['How_were_you_referred_to_the_company'].'</td>  
    </tr><tr> 
     <td>If yes, explain if you wish: </td><td>'.$_POST['If_yes_explain_if_you_wish'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td><h3><strong>EMPLOYMENT HISTORY</strong></h3></td>  
    </tr>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    
     <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer1'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom1'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To1'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip1'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson1'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber1'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld1'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage1'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving1'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed1'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing1'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer2'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom2'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To2'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip2'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson2'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber2'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld2'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage2'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving2'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed2'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing2'].'</td>  
     </tr>
    <td> </td>
    
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer3'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom3'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To3'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip3'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson3'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber3'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld3'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage3'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving3'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed3'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing3'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer4'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom4'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To4'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address4'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City4'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State4'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip4'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson4'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber4'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld4'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage4'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving4'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed4'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    <td> </td>
    <td><h3><strong>ACCIDENT RECORD</strong> for past 3 years or more (attach sheet if more space is required). If non, write none.</h3></td> 
    <td> </td> 
    <tr> 
     <td>Last Accident: </td><td>'.$_POST['Last_Accident1'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous11'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous12'].'</td>  
    </tr>
    
    <td> </td>
    <td><h3><strong>TRAFFIC CONVICTIONS</strong> and forfeitures for the past 3 years (other than parking violations). If none, write none.</h3></td> 
    <tr> 
     <td>Last Violation: </td><td>'.$_POST['Last_Accident2'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous21'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous22'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous23'].'</td>  
    </tr>
    
    
    <tr> 
     <td>Have you EVER been convicted of a DUI, DWI and/or DUBAL?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_DUI_DWI_and_or_DUBAL'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted for reckless driving?: </td><td>'.$_POST['Have_you_EVER_been_convicted_for_reckless_driving'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of fleeing or attempting to elude a police officer?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_fleeing_or_attempting_to_elude_a_police_officer'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of leaving the scene of an accident?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_leaving_the_scene_of_an_accident'].'</td>  
    </tr>
    
    <tr> 
     <td>Have you EVER been convicted of a railroad crossing violation?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_railroad_crossing_violation'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of passing a school bus while it is unloading or loading?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_passing_a_school_bus_while_it_is_unloading_or_loading'].'</td>  
    </tr><tr> 
     <td>Has your license EVER been suspended or revoked?: </td><td>'.$_POST['Has_your_license_EVER_been_suspended_or_revoked'].'</td>  
    </tr><tr> 
     <td>If so, please explain:: </td><td>'.$_POST['If_yes_explain_if_you_wish1'].'</td>  
    </tr><tr> 
     <td>Have you ever been convicted of a felony?: </td><td>'.$_POST['Have_you_ever_been_convicted_of_a_felony'].'</td>  
    </tr><tr> 
     <td>If so, please explain: </td><td>'.$_POST['If_yes_explain_if_you_wish2'].'</td>  
    </tr>
    <td> </td>
    
    
    
    <td> <h3>  <strong>EXPERIENCE AND QUALIFICATIONS - DRIVER</strong></h3></td> 
    <td> </td>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State1'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License1'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements1'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration1'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State2'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License2'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements2'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration2'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State3'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License3'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements3'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration3'].'</td>  
    </tr>
    <tr> 
     <td>A. Have you ever been denied a licens, permit or privilege to operate a motor vehicle?: </td><td>'.$_POST['Have_you_ever_been_denied_a_license'].'</td>  
    </tr>
    <tr> 
     <td>Please list any other driving experience (equipment type & approximate dates/miles driven): </td><td>'.$_POST['If_yes_explain_if_you_wish3'].'</td>  
    </tr>
    <tr> 
     <td><strong>Education </strong>listing highest grade completed and any degrees earned </td><td>'.$_POST['listing_highest_grade_completed_and_any_degrees_earned'].'</td>  
    </tr>
    
    <td> </td>
    
     <tr> 
     <td>Signature: </td><td>'.$_POST['Signature'].'</td>  
    </tr>
     <tr> 
     <td>Date: </td><td>'.$_POST['Date1'].'</td>  
    </tr>
    
     <td> </td>
    </tr>
    </table> 
    
    </body> 
    </html>';
    /* To send HTML mail, set the Content-type header. */ 
    $headers  = "MIME-Version: 1.0\r\n"; 
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
    $headers .= "From: " . $from . "\r\n"; 
    /* and now mail it */ 
    /*echo $message; die;*/
    @mail($to, $subject, $message, $headers);
    
    echo "<h4>Your message has been sent to us with your full application details.<br />
                <span>We will reply soon as soon as possible to follow up with you on our hiring process.  Thank you for considering A&S Transportation, Inc. for employment.</span></h4>";
    
    
    mysqli_close($link); 
    ?>
    
    
    

    Please any suggestions are welcome.. this is something that should be simple.. not sure why it takes 4 advanced programmers to help and still does not work..   I know the code started as a hot mess but I always believed php to be more forgiving.. I guess no code is forgiving at all..   Please help.  Thanks, Tina 

  6. Miko, 

     

    I am sorry I don't understand what your saying here... again not being a hard coder... background in design and ecommerce the most programming I usually do it for interface design and very little at that.  Can you kinda spell it out what you mean?  In code?? just one line? 

     

    Thanks, T

  7. OK.. did these changes.. tested.. and here is the result.. NO ERROR MESSAGE NOW.. and here is the code.. email works but does not send the data to the database.. 

     

    HELP.. I am so lost.. anyone want to trade some work out.. design for programming to get this off my desk?? :) 

    <?php 
    //send data to sql database first
    
    $username="user";
    $password="pass";
    $database="db name here";
    $server="ip";
    
    $link=mysqli_connect ($server, $username, $password); 
    if (!$link)  { 
      die('Could not connect: ' . mysqli_error()); 
      } 
    
    mysqli_select_db( $link, $database); 
    
    $APPLICANT_TO_COMPLETE_FirstName = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_FirstName']);
    $APPLICANT_TO_COMPLETE_LastName = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_LastName']);
    $DateofApplication = mysqli_real_escape_string($link, $_POST['DateofApplication']);
    $APPLICANT_TO_COMPLETE_PhoneNumber = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_PhoneNumber']);
    $APPLICANT_TO_COMPLETE_SecondaryPhone = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_SecondaryPhone']);
    $License1 = mysqli_real_escape_string($link, $_POST['License1']);
    $APPLICANT_TO_COMPLETE_CurrentAddress = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_CurrentAddress']);
    $APPLICANT_TO_COMPLETE_CurrentCity = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_CurrentCity']);
    $APPLICANT_TO_COMPLETE_CurrentState = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_CurrentState']);
    $APPLICANT_TO_COMPLETE_CurrentZip = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_CurrentZip']);
    
    $result = mysqli_query($link, "INSERT INTO Driver_applicants (FirstName, LastName, Applicationdate, Phone, AltPhone, DL, StreetAddress, City, State, Zip) VALUES ('$_POST[APPLICANT_TO_COMPLETE_FirstName]','$_POST[APPLICANT_TO_COMPLETE_LastName]','$_POST[DateofApplication]','$_POST[APPLICANT_TO_COMPLETE_PhoneNumber]','$_POST[APPLICANT_TO_COMPLETE_SecondaryPhone]','$_POST[License1]','$_POST[APPLICANT_TO_COMPLETE_CurrentAddress]','$_POST[APPLICANT_TO_COMPLETE_CurrentCity]','$_POST[APPLICANT_TO_COMPLETE_CurrentState]','$_POST[APPLICANT_TO_COMPLETE_CurrentZip]'"); 
    
    
    if (!result)
      { 
      die('Error: ' . mysqli_error()); 
      } 
    
    //now send email to applications@aandstransportation.com
    $to = 'applications@aandstransportation.com';
    $from = $_POST['ApplicantName'];
    // $status = $_POST['Project_status'];
    /* subject */ 
    $subject = "Application For Employment Web Submission"; 
    /* message */ 
    $message = '<html> 
    <head> 
    <title>Application For Employment Web Submission</title> 
    </head> 
    <body> 
    <p>Dear '.$to.',</p> 
    <table>
    <tr> 
    <td colspan="2">"Employment Application Details:"</td>
    </tr><tr> 
     <td>Applicant Name: </td><td>'.$_POST['ApplicantName'].'</td>  
     </tr>  <tr> 
      <td>Date of Application: </td><td>'.$_POST['DateofApplication'].'</td>
    </tr><tr> 
     <td>Company: </td><td>'.$_POST['Company'].'</td>  
    </tr><tr> 
    <td>Address: </td><td>'.$_POST['Address'].'</td>  
    </tr><tr> 
     <td>Signature: </td><td>'.$_POST['Signature1'].'</td>  
    </tr><tr> 
     <td>Date: </td><td>'.$_POST['Date'].'</td>  
    </tr>
    
    <tr> 
                      <td></h3><strong> FOR COMPANY USE</strong> </h3></td>  
    </tr>
    
    <td> </td>
    <tr> 
     <td>APPLICANT HIRED: </td><td>'.$_POST['APPLICANTHIRED'].'</td>  
    </tr>
    <tr> 
     <td>District: </td><td>'.$_POST['District'].'</td>  
    </tr>
    <tr> 
     <td>DATE EMPLOYED: </td><td>'.$_POST['DATEEMPLOYED'].'</td>  
    </tr>
    <tr> 
     <td>Interviewing Manager: </td><td>'.$_POST['InterviewingManager'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['InterviewingManager_Signature'].'</td>  
    </tr>
    <tr> 
     <td>Human Resources: </td><td>'.$_POST['HumanResources'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['HumanResources_Signature'].'</td>  
    </tr>
    <td> </td>
    
    
    <tr> 
                    </h3>  <strong> <td>APPLICANT TO COMPLETE</h3></strong></td>  
    </tr>
    <tr> 
     <td>LastName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_LastName'].'</td>  
    </tr><tr> 
     <td>FirstName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_FirstName'].'</td>  
    </tr><tr> 
     <td>SSN: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SSN'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Secondary Phone: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SecondaryPhone'].'</td>  
    </tr><tr> 
     <td>Position(s) applied for: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Position_applied__for'].'</td>  
    </tr><tr> 
     <td>Rate of pay expected: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Rate_of_pay_expected'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Current<br />
                                Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentAddress'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentCity'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentState'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentZip'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentHowLong'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Previous Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip1'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong1'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip2'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong2'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip3'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong3'].'</td>  
    </tr>
    
    
    <td> </td>
    <tr> 
     <td>Do you have the legal right to work in the United States? : </td><td>'.$_POST['Do_you_have_the_legal_right_to_work_in_the_United_States'].'</td>  
    </tr><tr> 
     <td>Date of Birth: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousDate_of_Birth'].'</td>  
    </tr><tr> 
     <td>Can you provide proof of age?: </td><td>'.$_POST['Can_you_provide_proof_of_age'].'</td>  
    </tr><tr> 
     <td>Have you worked for this company before?: </td><td>'.$_POST['Have_you_worked_for_this_company_before'].'</td>  
    </tr><tr> 
     <td>Where?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousWhere'].'</td>  
    </tr>
    <tr> 
     <td>Are you currently employed?: </td><td>'.$_POST['Are_you_currently_employed'].'</td>  
    </tr><tr> 
     <td>How were you referred to the company?: </td><td>'.$_POST['How_were_you_referred_to_the_company'].'</td>  
    </tr><tr> 
     <td>If yes, explain if you wish: </td><td>'.$_POST['If_yes_explain_if_you_wish'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td><h3><strong>EMPLOYMENT HISTORY</strong></h3></td>  
    </tr>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    
     <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer1'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom1'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To1'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip1'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson1'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber1'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld1'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage1'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving1'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed1'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing1'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer2'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom2'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To2'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip2'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson2'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber2'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld2'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage2'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving2'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed2'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing2'].'</td>  
     </tr>
    <td> </td>
    
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer3'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom3'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To3'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip3'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson3'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber3'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld3'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage3'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving3'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed3'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing3'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer4'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom4'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To4'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address4'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City4'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State4'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip4'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson4'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber4'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld4'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage4'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving4'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed4'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    <td> </td>
    <td><h3><strong>ACCIDENT RECORD</strong> for past 3 years or more (attach sheet if more space is required). If non, write none.</h3></td> 
    <td> </td> 
    <tr> 
     <td>Last Accident: </td><td>'.$_POST['Last_Accident1'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous11'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous12'].'</td>  
    </tr>
    
    <td> </td>
    <td><h3><strong>TRAFFIC CONVICTIONS</strong> and forfeitures for the past 3 years (other than parking violations). If none, write none.</h3></td> 
    <tr> 
     <td>Last Violation: </td><td>'.$_POST['Last_Accident2'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous21'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous22'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous23'].'</td>  
    </tr>
    
    
    <tr> 
     <td>Have you EVER been convicted of a DUI, DWI and/or DUBAL?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_DUI_DWI_and_or_DUBAL'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted for reckless driving?: </td><td>'.$_POST['Have_you_EVER_been_convicted_for_reckless_driving'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of fleeing or attempting to elude a police officer?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_fleeing_or_attempting_to_elude_a_police_officer'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of leaving the scene of an accident?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_leaving_the_scene_of_an_accident'].'</td>  
    </tr>
    
    <tr> 
     <td>Have you EVER been convicted of a railroad crossing violation?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_railroad_crossing_violation'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of passing a school bus while it is unloading or loading?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_passing_a_school_bus_while_it_is_unloading_or_loading'].'</td>  
    </tr><tr> 
     <td>Has your license EVER been suspended or revoked?: </td><td>'.$_POST['Has_your_license_EVER_been_suspended_or_revoked'].'</td>  
    </tr><tr> 
     <td>If so, please explain:: </td><td>'.$_POST['If_yes_explain_if_you_wish1'].'</td>  
    </tr><tr> 
     <td>Have you ever been convicted of a felony?: </td><td>'.$_POST['Have_you_ever_been_convicted_of_a_felony'].'</td>  
    </tr><tr> 
     <td>If so, please explain: </td><td>'.$_POST['If_yes_explain_if_you_wish2'].'</td>  
    </tr>
    <td> </td>
    
    
    
    <td> <h3>  <strong>EXPERIENCE AND QUALIFICATIONS - DRIVER</strong></h3></td> 
    <td> </td>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State1'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License1'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements1'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration1'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State2'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License2'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements2'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration2'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State3'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License3'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements3'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration3'].'</td>  
    </tr>
    <tr> 
     <td>A. Have you ever been denied a licens, permit or privilege to operate a motor vehicle?: </td><td>'.$_POST['Have_you_ever_been_denied_a_license'].'</td>  
    </tr>
    <tr> 
     <td>Please list any other driving experience (equipment type & approximate dates/miles driven): </td><td>'.$_POST['If_yes_explain_if_you_wish3'].'</td>  
    </tr>
    <tr> 
     <td><strong>Education </strong>listing highest grade completed and any degrees earned </td><td>'.$_POST['listing_highest_grade_completed_and_any_degrees_earned'].'</td>  
    </tr>
    
    <td> </td>
    
     <tr> 
     <td>Signature: </td><td>'.$_POST['Signature'].'</td>  
    </tr>
     <tr> 
     <td>Date: </td><td>'.$_POST['Date1'].'</td>  
    </tr>
    
     <td> </td>
    </tr>
    </table> 
    
    </body> 
    </html>';
    /* To send HTML mail, set the Content-type header. */ 
    $headers  = "MIME-Version: 1.0\r\n"; 
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
    $headers .= "From: " . $from . "\r\n"; 
    /* and now mail it */ 
    /*echo $message; die;*/
    @mail($to, $subject, $message, $headers);
    
    echo "<h4>Your message has been sent to us with your full application details.<br />
                <span>We will reply soon as soon as possible to follow up with you on our hiring process.  Thank you for considering A&S Transportation, Inc. for employment.</span></h4>";
    
    
    mysqli_close($link); 
    ?>
    
    
    

    Thanks everyone who has been helping thus far.. :) really thank you bunches!!

  8. Miko.. 

     

    Here goes..   does this look ok? 

    <?php 
    //send data to sql database first
    
    $username="user here";
    $password="pass here";
    $database="db here";
    $server="ip here";
    
    
    $link=mysqli_connect ($server, $username, $password); 
    if (!$link)  { 
      die('Could not connect: ' . mysqli_error()); 
      } 
    
    mysqli_select_db($link, $database); 
    
    $APPLICANT_TO_COMPLETE_FirstName = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_FirstName']);
    $APPLICANT_TO_COMPLETE_LastName = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_LastName']);
    $DateofApplication = mysqli_real_escape_string($link, $_POST['DateofApplication']);
    $APPLICANT_TO_COMPLETE_PhoneNumber = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_PhoneNumber']);
    $APPLICANT_TO_COMPLETE_SecondaryPhone = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_SecondaryPhone']);
    $License1 = mysqli_real_escape_string($link, $_POST['License1']);
    $APPLICANT_TO_COMPLETE_CurrentAddress = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_CurrentAddress']);
    $APPLICANT_TO_COMPLETE_CurrentCity = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_CurrentCity']);
    $APPLICANT_TO_COMPLETE_CurrentState = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_CurrentState']);
    $APPLICANT_TO_COMPLETE_CurrentZip = mysqli_real_escape_string($link, $_POST['APPLICANT_TO_COMPLETE_CurrentZip']);
    
    $result = mysqli_query($link, "INSERT INTO Driver_applicants (FirstName, LastName, Applicationdate, Phone, AltPhone, DL, StreetAddress, City, State, Zip) VALUES ('$_POST[APPLICANT_TO_COMPLETE_FirstName]','$_POST[APPLICANT_TO_COMPLETE_LastName]','$_POST[DateofApplication]','$_POST[APPLICANT_TO_COMPLETE_PhoneNumber]','$_POST[APPLICANT_TO_COMPLETE_SecondaryPhone]','$_POST[License1]','$_POST[APPLICANT_TO_COMPLETE_CurrentAddress]','$_POST[APPLICANT_TO_COMPLETE_CurrentCity]','$_POST[APPLICANT_TO_COMPLETE_CurrentState]','$_POST[APPLICANT_TO_COMPLETE_CurrentZip]'"); 
    
    
    if (!result)
      { 
      die('Error: ' . mysqli_error()); 
      } 
    
    //now send email to applications@aandstransportation.com
    $to = 'applications@aandstransportation.com';
    $from = $_POST['ApplicantName'];
    // $status = $_POST['Project_status'];
    /* subject */ 
    $subject = "Application For Employment Web Submission"; 
    /* message */ 
    $message = '<html> 
    <head> 
    <title>Application For Employment Web Submission</title> 
    </head> 
    <body> 
    <p>Dear '.$to.',</p> 
    <table>
    <tr> 
    <td colspan="2">"Employment Application Details:"</td>
    </tr><tr> 
     <td>Applicant Name: </td><td>'.$_POST['ApplicantName'].'</td>  
     </tr>  <tr> 
      <td>Date of Application: </td><td>'.$_POST['DateofApplication'].'</td>
    </tr><tr> 
     <td>Company: </td><td>'.$_POST['Company'].'</td>  
    </tr><tr> 
    <td>Address: </td><td>'.$_POST['Address'].'</td>  
    </tr><tr> 
     <td>Signature: </td><td>'.$_POST['Signature1'].'</td>  
    </tr><tr> 
     <td>Date: </td><td>'.$_POST['Date'].'</td>  
    </tr>
    
    <tr> 
                      <td></h3><strong> FOR COMPANY USE</strong> </h3></td>  
    </tr>
    
    <td> </td>
    <tr> 
     <td>APPLICANT HIRED: </td><td>'.$_POST['APPLICANTHIRED'].'</td>  
    </tr>
    <tr> 
     <td>District: </td><td>'.$_POST['District'].'</td>  
    </tr>
    <tr> 
     <td>DATE EMPLOYED: </td><td>'.$_POST['DATEEMPLOYED'].'</td>  
    </tr>
    <tr> 
     <td>Interviewing Manager: </td><td>'.$_POST['InterviewingManager'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['InterviewingManager_Signature'].'</td>  
    </tr>
    <tr> 
     <td>Human Resources: </td><td>'.$_POST['HumanResources'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['HumanResources_Signature'].'</td>  
    </tr>
    <td> </td>
    
    
    <tr> 
                    </h3>  <strong> <td>APPLICANT TO COMPLETE</h3></strong></td>  
    </tr>
    <tr> 
     <td>LastName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_LastName'].'</td>  
    </tr><tr> 
     <td>FirstName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_FirstName'].'</td>  
    </tr><tr> 
     <td>SSN: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SSN'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Secondary Phone: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SecondaryPhone'].'</td>  
    </tr><tr> 
     <td>Position(s) applied for: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Position_applied__for'].'</td>  
    </tr><tr> 
     <td>Rate of pay expected: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Rate_of_pay_expected'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Current<br />
                                Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentAddress'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentCity'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentState'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentZip'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentHowLong'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Previous Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip1'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong1'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip2'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong2'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip3'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong3'].'</td>  
    </tr>
    
    
    <td> </td>
    <tr> 
     <td>Do you have the legal right to work in the United States? : </td><td>'.$_POST['Do_you_have_the_legal_right_to_work_in_the_United_States'].'</td>  
    </tr><tr> 
     <td>Date of Birth: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousDate_of_Birth'].'</td>  
    </tr><tr> 
     <td>Can you provide proof of age?: </td><td>'.$_POST['Can_you_provide_proof_of_age'].'</td>  
    </tr><tr> 
     <td>Have you worked for this company before?: </td><td>'.$_POST['Have_you_worked_for_this_company_before'].'</td>  
    </tr><tr> 
     <td>Where?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousWhere'].'</td>  
    </tr>
    <tr> 
     <td>Are you currently employed?: </td><td>'.$_POST['Are_you_currently_employed'].'</td>  
    </tr><tr> 
     <td>How were you referred to the company?: </td><td>'.$_POST['How_were_you_referred_to_the_company'].'</td>  
    </tr><tr> 
     <td>If yes, explain if you wish: </td><td>'.$_POST['If_yes_explain_if_you_wish'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td><h3><strong>EMPLOYMENT HISTORY</strong></h3></td>  
    </tr>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    
     <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer1'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom1'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To1'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip1'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson1'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber1'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld1'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage1'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving1'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed1'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing1'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer2'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom2'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To2'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip2'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson2'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber2'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld2'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage2'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving2'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed2'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing2'].'</td>  
     </tr>
    <td> </td>
    
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer3'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom3'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To3'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip3'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson3'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber3'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld3'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage3'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving3'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed3'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing3'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer4'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom4'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To4'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address4'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City4'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State4'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip4'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson4'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber4'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld4'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage4'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving4'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed4'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    <td> </td>
    <td><h3><strong>ACCIDENT RECORD</strong> for past 3 years or more (attach sheet if more space is required). If non, write none.</h3></td> 
    <td> </td> 
    <tr> 
     <td>Last Accident: </td><td>'.$_POST['Last_Accident1'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous11'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous12'].'</td>  
    </tr>
    
    <td> </td>
    <td><h3><strong>TRAFFIC CONVICTIONS</strong> and forfeitures for the past 3 years (other than parking violations). If none, write none.</h3></td> 
    <tr> 
     <td>Last Violation: </td><td>'.$_POST['Last_Accident2'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous21'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous22'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous23'].'</td>  
    </tr>
    
    
    <tr> 
     <td>Have you EVER been convicted of a DUI, DWI and/or DUBAL?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_DUI_DWI_and_or_DUBAL'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted for reckless driving?: </td><td>'.$_POST['Have_you_EVER_been_convicted_for_reckless_driving'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of fleeing or attempting to elude a police officer?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_fleeing_or_attempting_to_elude_a_police_officer'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of leaving the scene of an accident?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_leaving_the_scene_of_an_accident'].'</td>  
    </tr>
    
    <tr> 
     <td>Have you EVER been convicted of a railroad crossing violation?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_railroad_crossing_violation'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of passing a school bus while it is unloading or loading?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_passing_a_school_bus_while_it_is_unloading_or_loading'].'</td>  
    </tr><tr> 
     <td>Has your license EVER been suspended or revoked?: </td><td>'.$_POST['Has_your_license_EVER_been_suspended_or_revoked'].'</td>  
    </tr><tr> 
     <td>If so, please explain:: </td><td>'.$_POST['If_yes_explain_if_you_wish1'].'</td>  
    </tr><tr> 
     <td>Have you ever been convicted of a felony?: </td><td>'.$_POST['Have_you_ever_been_convicted_of_a_felony'].'</td>  
    </tr><tr> 
     <td>If so, please explain: </td><td>'.$_POST['If_yes_explain_if_you_wish2'].'</td>  
    </tr>
    <td> </td>
    
    
    
    <td> <h3>  <strong>EXPERIENCE AND QUALIFICATIONS - DRIVER</strong></h3></td> 
    <td> </td>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State1'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License1'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements1'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration1'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State2'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License2'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements2'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration2'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State3'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License3'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements3'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration3'].'</td>  
    </tr>
    <tr> 
     <td>A. Have you ever been denied a licens, permit or privilege to operate a motor vehicle?: </td><td>'.$_POST['Have_you_ever_been_denied_a_license'].'</td>  
    </tr>
    <tr> 
     <td>Please list any other driving experience (equipment type & approximate dates/miles driven): </td><td>'.$_POST['If_yes_explain_if_you_wish3'].'</td>  
    </tr>
    <tr> 
     <td><strong>Education </strong>listing highest grade completed and any degrees earned </td><td>'.$_POST['listing_highest_grade_completed_and_any_degrees_earned'].'</td>  
    </tr>
    
    <td> </td>
    
     <tr> 
     <td>Signature: </td><td>'.$_POST['Signature'].'</td>  
    </tr>
     <tr> 
     <td>Date: </td><td>'.$_POST['Date1'].'</td>  
    </tr>
    
     <td> </td>
    </tr>
    </table> 
    
    </body> 
    </html>';
    /* To send HTML mail, set the Content-type header. */ 
    $headers  = "MIME-Version: 1.0\r\n"; 
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
    $headers .= "From: " . $from . "\r\n"; 
    /* and now mail it */ 
    /*echo $message; die;*/
    @mail($to, $subject, $message, $headers);
    
    echo "<h4>Your message has been sent to us with your full application details.<br />
                <span>We will reply soon as soon as possible to follow up with you on our hiring process.  Thank you for considering A&S Transportation, Inc. for employment.</span></h4>";
    
    
    mysqli_close($link); 
    ?>
    
    
  9. I started by removing just the @ symbol and tested.. got another error message.. 

    trying the other steps now.. here is the error message.. 

     

    Warning: mysqli_select_db() expects parameter 1 to be mysqli, string given in/home2/astrans/public_html/employment/contact_action_contact.php on line 15

  10. For escape strings... 

    Should it be like this for each field on the form or each field on the database??? 

     

    $APPLICANT_TO_COMPLETE_FirstName = $_POST['APPLICANT_TO_COMPLETE_FirstName];
    $APPLICANT_TO_COMPLETE_FirstName = mysqli_real_escape_string($APPLICANT_TO_COMPLETE_FirstName);
     
    ???
     
     
    And this goes under line 17?  or after each field??? does it matter where it goes??? 
     
    Thanks, Tina
  11. Kicken, 

     

    I tried it with the port number.. with it I get the cannot connect error.. 

     

    I tried it without the port number and it works, I have no error message now however it is not putting the data into the database at all.. Not sure why. 

     

    I don't understand mysqli_real_escape_string(). enough to do that yet.. I will but I will wait till I get the basics working and backed up and then add that to the script.. 

     

     

    Now no error message BUT NOT PUTTING DATA into table from the employment application. 

     

    Here is the code now: 

    <?php 
    //send data to sql database first
    
    $username="username";
    $password="pass";
    $database="database name";
    $server="ip";
    
    
    $link=mysqli_connect ($server, $username, $password); 
    if (!$link)  { 
      die('Could not connect: ' . mysqli_error()); 
      } 
    
    @mysqli_select_db($database, $link); 
    
    $result = mysqli_query($link, "INSERT INTO Driver_applicants (FirstName, LastName, Applicationdate, Phone, AltPhone, DL, StreetAddress, City, State, Zip) VALUES ('$_POST[APPLICANT_TO_COMPLETE_FirstName]','$_POST[APPLICANT_TO_COMPLETE_LastName]','$_POST[DateofApplication]','$_POST[APPLICANT_TO_COMPLETE_PhoneNumber]','$_POST[APPLICANT_TO_COMPLETE_SecondaryPhone]','$_POST[License1]','$_POST[APPLICANT_TO_COMPLETE_CurrentAddress]','$_POST[APPLICANT_TO_COMPLETE_CurrentCity]','$_POST[APPLICANT_TO_COMPLETE_CurrentState]','$_POST[APPLICANT_TO_COMPLETE_CurrentZip]'"); 
    
    if (!result)
      { 
      die('Error: ' . mysqli_error()); 
      } 
    
    //now send email to applications@aandstransportation.com
    $to = 'applications@aandstransportation.com';
    $from = $_POST['ApplicantName'];
    // $status = $_POST['Project_status'];
    /* subject */ 
    $subject = "Application For Employment Web Submission"; 
    /* message */ 
    $message = '<html> 
    <head> 
    <title>Application For Employment Web Submission</title> 
    </head> 
    <body> 
    <p>Dear '.$to.',</p> 
    <table>
    <tr> 
    <td colspan="2">"Employment Application Details:"</td>
    </tr><tr> 
     <td>Applicant Name: </td><td>'.$_POST['ApplicantName'].'</td>  
     </tr>  <tr> 
      <td>Date of Application: </td><td>'.$_POST['DateofApplication'].'</td>
    </tr><tr> 
     <td>Company: </td><td>'.$_POST['Company'].'</td>  
    </tr><tr> 
    <td>Address: </td><td>'.$_POST['Address'].'</td>  
    </tr><tr> 
     <td>Signature: </td><td>'.$_POST['Signature1'].'</td>  
    </tr><tr> 
     <td>Date: </td><td>'.$_POST['Date'].'</td>  
    </tr>
    
    <tr> 
                      <td></h3><strong> FOR COMPANY USE</strong> </h3></td>  
    </tr>
    
    <td> </td>
    <tr> 
     <td>APPLICANT HIRED: </td><td>'.$_POST['APPLICANTHIRED'].'</td>  
    </tr>
    <tr> 
     <td>District: </td><td>'.$_POST['District'].'</td>  
    </tr>
    <tr> 
     <td>DATE EMPLOYED: </td><td>'.$_POST['DATEEMPLOYED'].'</td>  
    </tr>
    <tr> 
     <td>Interviewing Manager: </td><td>'.$_POST['InterviewingManager'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['InterviewingManager_Signature'].'</td>  
    </tr>
    <tr> 
     <td>Human Resources: </td><td>'.$_POST['HumanResources'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['HumanResources_Signature'].'</td>  
    </tr>
    <td> </td>
    
    
    <tr> 
                    </h3>  <strong> <td>APPLICANT TO COMPLETE</h3></strong></td>  
    </tr>
    <tr> 
     <td>LastName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_LastName'].'</td>  
    </tr><tr> 
     <td>FirstName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_FirstName'].'</td>  
    </tr><tr> 
     <td>SSN: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SSN'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Secondary Phone: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SecondaryPhone'].'</td>  
    </tr><tr> 
     <td>Position(s) applied for: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Position_applied__for'].'</td>  
    </tr><tr> 
     <td>Rate of pay expected: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Rate_of_pay_expected'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Current<br />
                                Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentAddress'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentCity'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentState'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentZip'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentHowLong'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Previous Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip1'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong1'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip2'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong2'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip3'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong3'].'</td>  
    </tr>
    
    
    <td> </td>
    <tr> 
     <td>Do you have the legal right to work in the United States? : </td><td>'.$_POST['Do_you_have_the_legal_right_to_work_in_the_United_States'].'</td>  
    </tr><tr> 
     <td>Date of Birth: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousDate_of_Birth'].'</td>  
    </tr><tr> 
     <td>Can you provide proof of age?: </td><td>'.$_POST['Can_you_provide_proof_of_age'].'</td>  
    </tr><tr> 
     <td>Have you worked for this company before?: </td><td>'.$_POST['Have_you_worked_for_this_company_before'].'</td>  
    </tr><tr> 
     <td>Where?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousWhere'].'</td>  
    </tr>
    <tr> 
     <td>Are you currently employed?: </td><td>'.$_POST['Are_you_currently_employed'].'</td>  
    </tr><tr> 
     <td>How were you referred to the company?: </td><td>'.$_POST['How_were_you_referred_to_the_company'].'</td>  
    </tr><tr> 
     <td>If yes, explain if you wish: </td><td>'.$_POST['If_yes_explain_if_you_wish'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td><h3><strong>EMPLOYMENT HISTORY</strong></h3></td>  
    </tr>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    
     <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer1'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom1'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To1'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip1'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson1'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber1'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld1'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage1'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving1'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed1'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing1'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer2'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom2'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To2'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip2'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson2'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber2'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld2'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage2'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving2'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed2'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing2'].'</td>  
     </tr>
    <td> </td>
    
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer3'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom3'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To3'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip3'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson3'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber3'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld3'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage3'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving3'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed3'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing3'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer4'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom4'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To4'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address4'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City4'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State4'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip4'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson4'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber4'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld4'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage4'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving4'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed4'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    <td> </td>
    <td><h3><strong>ACCIDENT RECORD</strong> for past 3 years or more (attach sheet if more space is required). If non, write none.</h3></td> 
    <td> </td> 
    <tr> 
     <td>Last Accident: </td><td>'.$_POST['Last_Accident1'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous11'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous12'].'</td>  
    </tr>
    
    <td> </td>
    <td><h3><strong>TRAFFIC CONVICTIONS</strong> and forfeitures for the past 3 years (other than parking violations). If none, write none.</h3></td> 
    <tr> 
     <td>Last Violation: </td><td>'.$_POST['Last_Accident2'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous21'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous22'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous23'].'</td>  
    </tr>
    
    
    <tr> 
     <td>Have you EVER been convicted of a DUI, DWI and/or DUBAL?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_DUI_DWI_and_or_DUBAL'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted for reckless driving?: </td><td>'.$_POST['Have_you_EVER_been_convicted_for_reckless_driving'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of fleeing or attempting to elude a police officer?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_fleeing_or_attempting_to_elude_a_police_officer'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of leaving the scene of an accident?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_leaving_the_scene_of_an_accident'].'</td>  
    </tr>
    
    <tr> 
     <td>Have you EVER been convicted of a railroad crossing violation?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_railroad_crossing_violation'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of passing a school bus while it is unloading or loading?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_passing_a_school_bus_while_it_is_unloading_or_loading'].'</td>  
    </tr><tr> 
     <td>Has your license EVER been suspended or revoked?: </td><td>'.$_POST['Has_your_license_EVER_been_suspended_or_revoked'].'</td>  
    </tr><tr> 
     <td>If so, please explain:: </td><td>'.$_POST['If_yes_explain_if_you_wish1'].'</td>  
    </tr><tr> 
     <td>Have you ever been convicted of a felony?: </td><td>'.$_POST['Have_you_ever_been_convicted_of_a_felony'].'</td>  
    </tr><tr> 
     <td>If so, please explain: </td><td>'.$_POST['If_yes_explain_if_you_wish2'].'</td>  
    </tr>
    <td> </td>
    
    
    
    <td> <h3>  <strong>EXPERIENCE AND QUALIFICATIONS - DRIVER</strong></h3></td> 
    <td> </td>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State1'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License1'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements1'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration1'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State2'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License2'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements2'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration2'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State3'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License3'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements3'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration3'].'</td>  
    </tr>
    <tr> 
     <td>A. Have you ever been denied a licens, permit or privilege to operate a motor vehicle?: </td><td>'.$_POST['Have_you_ever_been_denied_a_license'].'</td>  
    </tr>
    <tr> 
     <td>Please list any other driving experience (equipment type & approximate dates/miles driven): </td><td>'.$_POST['If_yes_explain_if_you_wish3'].'</td>  
    </tr>
    <tr> 
     <td><strong>Education </strong>listing highest grade completed and any degrees earned </td><td>'.$_POST['listing_highest_grade_completed_and_any_degrees_earned'].'</td>  
    </tr>
    
    <td> </td>
    
     <tr> 
     <td>Signature: </td><td>'.$_POST['Signature'].'</td>  
    </tr>
     <tr> 
     <td>Date: </td><td>'.$_POST['Date1'].'</td>  
    </tr>
    
     <td> </td>
    </tr>
    </table> 
    
    </body> 
    </html>';
    /* To send HTML mail, set the Content-type header. */ 
    $headers  = "MIME-Version: 1.0\r\n"; 
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
    $headers .= "From: " . $from . "\r\n"; 
    /* and now mail it */ 
    /*echo $message; die;*/
    @mail($to, $subject, $message, $headers);
    
    echo "<h4>Your message has been sent to us with your full application details.<br />
                <span>We will reply soon as soon as possible to follow up with you on our hiring process.  Thank you for considering A&S Transportation, Inc. for employment.</span></h4>";
    
    
    mysqli_close($link); 
    ?>
    
    
    

    Thanks, Tina

  12. Actually I found out having the port there at all is part of the issue.. per another forum... tried this code below and now have only one small issue which is a warning!!! 

     

    Error is: 

    Warning: mysqli_query() expects at least 2 parameters, 1 given in/home2/astrans/public_html/employment/contact_action_contact.php on line 17

    Your message has been sent to us with your full application details.
    We will reply soon as soon as possible to follow up with you on our hiring process. Thank you for considering A&S Transportation, Inc. for employment.

     

    Code is: 

    <?php 
    //send data to sql database first
    
    $username="school_ast";
    $password="maryia11";
    $database="school_1";
    $server="50.97.101.236";
    
    
    $link=mysqli_connect ($server, $username, $password); 
    if (!$link)  { 
      die('Could not connect: ' . mysqli_error()); 
      } 
    
    @mysqli_select_db($database, $link); 
    
    $result = mysqli_query("INSERT INTO Driver_applicants (FirstName, LastName, Applicationdate, Phone, AltPhone, DL, StreetAddress, City, State, Zip) VALUES ('$_POST[APPLICANT_TO_COMPLETE_FirstName]','$_POST[APPLICANT_TO_COMPLETE_LastName]','$_POST[DateofApplication]','$_POST[APPLICANT_TO_COMPLETE_PhoneNumber]','$_POST[APPLICANT_TO_COMPLETE_SecondaryPhone]','$_POST[License1]','$_POST[APPLICANT_TO_COMPLETE_CurrentAddress]','$_POST[APPLICANT_TO_COMPLETE_CurrentCity]','$_POST[APPLICANT_TO_COMPLETE_CurrentState]','$_POST[APPLICANT_TO_COMPLETE_CurrentZip]'"); 
    
    if (!result)
      { 
      die('Error: ' . mysqli_error()); 
      } 
    
    //now send email to applications@aandstransportation.com
    $to = 'applications@aandstransportation.com';
    $from = $_POST['ApplicantName'];
    // $status = $_POST['Project_status'];
    /* subject */ 
    $subject = "Application For Employment Web Submission"; 
    /* message */ 
    $message = '<html> 
    <head> 
    <title>Application For Employment Web Submission</title> 
    </head> 
    <body> 
    <p>Dear '.$to.',</p> 
    <table>
    <tr> 
    <td colspan="2">"Employment Application Details:"</td>
    </tr><tr> 
     <td>Applicant Name: </td><td>'.$_POST['ApplicantName'].'</td>  
     </tr>  <tr> 
      <td>Date of Application: </td><td>'.$_POST['DateofApplication'].'</td>
    </tr><tr> 
     <td>Company: </td><td>'.$_POST['Company'].'</td>  
    </tr><tr> 
    <td>Address: </td><td>'.$_POST['Address'].'</td>  
    </tr><tr> 
     <td>Signature: </td><td>'.$_POST['Signature1'].'</td>  
    </tr><tr> 
     <td>Date: </td><td>'.$_POST['Date'].'</td>  
    </tr>
    
    <tr> 
                      <td></h3><strong> FOR COMPANY USE</strong> </h3></td>  
    </tr>
    
    <td> </td>
    <tr> 
     <td>APPLICANT HIRED: </td><td>'.$_POST['APPLICANTHIRED'].'</td>  
    </tr>
    <tr> 
     <td>District: </td><td>'.$_POST['District'].'</td>  
    </tr>
    <tr> 
     <td>DATE EMPLOYED: </td><td>'.$_POST['DATEEMPLOYED'].'</td>  
    </tr>
    <tr> 
     <td>Interviewing Manager: </td><td>'.$_POST['InterviewingManager'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['InterviewingManager_Signature'].'</td>  
    </tr>
    <tr> 
     <td>Human Resources: </td><td>'.$_POST['HumanResources'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['HumanResources_Signature'].'</td>  
    </tr>
    <td> </td>
    
    
    <tr> 
                    </h3>  <strong> <td>APPLICANT TO COMPLETE</h3></strong></td>  
    </tr>
    <tr> 
     <td>LastName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_LastName'].'</td>  
    </tr><tr> 
     <td>FirstName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_FirstName'].'</td>  
    </tr><tr> 
     <td>SSN: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SSN'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Secondary Phone: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SecondaryPhone'].'</td>  
    </tr><tr> 
     <td>Position(s) applied for: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Position_applied__for'].'</td>  
    </tr><tr> 
     <td>Rate of pay expected: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Rate_of_pay_expected'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Current<br />
                                Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentAddress'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentCity'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentState'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentZip'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentHowLong'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Previous Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip1'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong1'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip2'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong2'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip3'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong3'].'</td>  
    </tr>
    
    
    <td> </td>
    <tr> 
     <td>Do you have the legal right to work in the United States? : </td><td>'.$_POST['Do_you_have_the_legal_right_to_work_in_the_United_States'].'</td>  
    </tr><tr> 
     <td>Date of Birth: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousDate_of_Birth'].'</td>  
    </tr><tr> 
     <td>Can you provide proof of age?: </td><td>'.$_POST['Can_you_provide_proof_of_age'].'</td>  
    </tr><tr> 
     <td>Have you worked for this company before?: </td><td>'.$_POST['Have_you_worked_for_this_company_before'].'</td>  
    </tr><tr> 
     <td>Where?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousWhere'].'</td>  
    </tr>
    <tr> 
     <td>Are you currently employed?: </td><td>'.$_POST['Are_you_currently_employed'].'</td>  
    </tr><tr> 
     <td>How were you referred to the company?: </td><td>'.$_POST['How_were_you_referred_to_the_company'].'</td>  
    </tr><tr> 
     <td>If yes, explain if you wish: </td><td>'.$_POST['If_yes_explain_if_you_wish'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td><h3><strong>EMPLOYMENT HISTORY</strong></h3></td>  
    </tr>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    
     <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer1'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom1'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To1'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip1'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson1'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber1'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld1'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage1'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving1'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed1'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing1'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer2'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom2'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To2'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip2'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson2'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber2'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld2'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage2'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving2'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed2'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing2'].'</td>  
     </tr>
    <td> </td>
    
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer3'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom3'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To3'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip3'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson3'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber3'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld3'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage3'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving3'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed3'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing3'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer4'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom4'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To4'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address4'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City4'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State4'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip4'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson4'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber4'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld4'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage4'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving4'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed4'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    <td> </td>
    <td><h3><strong>ACCIDENT RECORD</strong> for past 3 years or more (attach sheet if more space is required). If non, write none.</h3></td> 
    <td> </td> 
    <tr> 
     <td>Last Accident: </td><td>'.$_POST['Last_Accident1'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous11'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous12'].'</td>  
    </tr>
    
    <td> </td>
    <td><h3><strong>TRAFFIC CONVICTIONS</strong> and forfeitures for the past 3 years (other than parking violations). If none, write none.</h3></td> 
    <tr> 
     <td>Last Violation: </td><td>'.$_POST['Last_Accident2'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous21'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous22'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous23'].'</td>  
    </tr>
    
    
    <tr> 
     <td>Have you EVER been convicted of a DUI, DWI and/or DUBAL?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_DUI_DWI_and_or_DUBAL'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted for reckless driving?: </td><td>'.$_POST['Have_you_EVER_been_convicted_for_reckless_driving'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of fleeing or attempting to elude a police officer?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_fleeing_or_attempting_to_elude_a_police_officer'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of leaving the scene of an accident?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_leaving_the_scene_of_an_accident'].'</td>  
    </tr>
    
    <tr> 
     <td>Have you EVER been convicted of a railroad crossing violation?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_railroad_crossing_violation'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of passing a school bus while it is unloading or loading?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_passing_a_school_bus_while_it_is_unloading_or_loading'].'</td>  
    </tr><tr> 
     <td>Has your license EVER been suspended or revoked?: </td><td>'.$_POST['Has_your_license_EVER_been_suspended_or_revoked'].'</td>  
    </tr><tr> 
     <td>If so, please explain:: </td><td>'.$_POST['If_yes_explain_if_you_wish1'].'</td>  
    </tr><tr> 
     <td>Have you ever been convicted of a felony?: </td><td>'.$_POST['Have_you_ever_been_convicted_of_a_felony'].'</td>  
    </tr><tr> 
     <td>If so, please explain: </td><td>'.$_POST['If_yes_explain_if_you_wish2'].'</td>  
    </tr>
    <td> </td>
    
    
    
    <td> <h3>  <strong>EXPERIENCE AND QUALIFICATIONS - DRIVER</strong></h3></td> 
    <td> </td>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State1'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License1'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements1'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration1'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State2'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License2'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements2'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration2'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State3'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License3'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements3'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration3'].'</td>  
    </tr>
    <tr> 
     <td>A. Have you ever been denied a licens, permit or privilege to operate a motor vehicle?: </td><td>'.$_POST['Have_you_ever_been_denied_a_license'].'</td>  
    </tr>
    <tr> 
     <td>Please list any other driving experience (equipment type & approximate dates/miles driven): </td><td>'.$_POST['If_yes_explain_if_you_wish3'].'</td>  
    </tr>
    <tr> 
     <td><strong>Education </strong>listing highest grade completed and any degrees earned </td><td>'.$_POST['listing_highest_grade_completed_and_any_degrees_earned'].'</td>  
    </tr>
    
    <td> </td>
    
     <tr> 
     <td>Signature: </td><td>'.$_POST['Signature'].'</td>  
    </tr>
     <tr> 
     <td>Date: </td><td>'.$_POST['Date1'].'</td>  
    </tr>
    
     <td> </td>
    </tr>
    </table> 
    
    </body> 
    </html>';
    /* To send HTML mail, set the Content-type header. */ 
    $headers  = "MIME-Version: 1.0\r\n"; 
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
    $headers .= "From: " . $from . "\r\n"; 
    /* and now mail it */ 
    /*echo $message; die;*/
    @mail($to, $subject, $message, $headers);
    
    echo "<h4>Your message has been sent to us with your full application details.<br />
                <span>We will reply soon as soon as possible to follow up with you on our hiring process.  Thank you for considering A&S Transportation, Inc. for employment.</span></h4>";
    
    
    mysqli_close($link); 
    ?>
    
    
    

    Help.. just on line 17 please ???? 

    Almost done!!! 

  13. I think that helped putting the port on a separate line.. seemed to connect now but has one more error message.. 

     

     

    Here is the new error: 

     

    Warning: mysqli_query() expects at least 2 parameters, 1 given in/home2/astrans/public_html/employment/contact_action_contact.php on line 16

    Warning: mysql_query() expects parameter 2 to be resource, object given in/home2/astrans/public_html/employment/contact_action_contact.php on line 18
    Error:

     

    Here is the updated code: 

    <?php 
    //send data to sql database first
    
    $username="USER HERE";
    $password="PASS HERE";
    $database="DB HERE";
    $server="IP HERE";
    $port="PORT HERE";
    
    $link=mysqli_connect ($server, $port, $username, $password); 
    if (!$link)  { 
      die('Could not connect: ' . mysqli_error()); 
      } 
    
    @mysqli_select_db($database, $link); 
    
    $result = mysqli_query("INSERT INTO Driver_applicants (FirstName, LastName, Applicationdate, Phone, AltPhone, DL, StreetAddress, City, State, Zip) VALUES ('$_POST[APPLICANT_TO_COMPLETE_FirstName]','$_POST[APPLICANT_TO_COMPLETE_LastName]','$_POST[DateofApplication]','$_POST[APPLICANT_TO_COMPLETE_PhoneNumber]','$_POST[APPLICANT_TO_COMPLETE_SecondaryPhone]','$_POST[License1]','$_POST[APPLICANT_TO_COMPLETE_CurrentAddress]','$_POST[APPLICANT_TO_COMPLETE_CurrentCity]','$_POST[APPLICANT_TO_COMPLETE_CurrentState]','$_POST[APPLICANT_TO_COMPLETE_CurrentZip]'"); 
    
    if (!mysqli_query($mysql_query,$link)) 
      { 
      die('Error: ' . mysqli_error()); 
      } 
    
    //now send email to applications@aandstransportation.com
    $to = 'applications@aandstransportation.com';
    $from = $_POST['ApplicantName'];
    // $status = $_POST['Project_status'];
    /* subject */ 
    $subject = "Application For Employment Web Submission"; 
    /* message */ 
    $message = '<html> 
    <head> 
    <title>Application For Employment Web Submission</title> 
    </head> 
    <body> 
    <p>Dear '.$to.',</p> 
    <table>
    <tr> 
    <td colspan="2">"Employment Application Details:"</td>
    </tr><tr> 
     <td>Applicant Name: </td><td>'.$_POST['ApplicantName'].'</td>  
     </tr>  <tr> 
      <td>Date of Application: </td><td>'.$_POST['DateofApplication'].'</td>
    </tr><tr> 
     <td>Company: </td><td>'.$_POST['Company'].'</td>  
    </tr><tr> 
    <td>Address: </td><td>'.$_POST['Address'].'</td>  
    </tr><tr> 
     <td>Signature: </td><td>'.$_POST['Signature1'].'</td>  
    </tr><tr> 
     <td>Date: </td><td>'.$_POST['Date'].'</td>  
    </tr>
    
    <tr> 
                      <td></h3><strong> FOR COMPANY USE</strong> </h3></td>  
    </tr>
    
    <td> </td>
    <tr> 
     <td>APPLICANT HIRED: </td><td>'.$_POST['APPLICANTHIRED'].'</td>  
    </tr>
    <tr> 
     <td>District: </td><td>'.$_POST['District'].'</td>  
    </tr>
    <tr> 
     <td>DATE EMPLOYED: </td><td>'.$_POST['DATEEMPLOYED'].'</td>  
    </tr>
    <tr> 
     <td>Interviewing Manager: </td><td>'.$_POST['InterviewingManager'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['InterviewingManager_Signature'].'</td>  
    </tr>
    <tr> 
     <td>Human Resources: </td><td>'.$_POST['HumanResources'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['HumanResources_Signature'].'</td>  
    </tr>
    <td> </td>
    
    
    <tr> 
                    </h3>  <strong> <td>APPLICANT TO COMPLETE</h3></strong></td>  
    </tr>
    <tr> 
     <td>LastName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_LastName'].'</td>  
    </tr><tr> 
     <td>FirstName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_FirstName'].'</td>  
    </tr><tr> 
     <td>SSN: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SSN'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Secondary Phone: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SecondaryPhone'].'</td>  
    </tr><tr> 
     <td>Position(s) applied for: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Position_applied__for'].'</td>  
    </tr><tr> 
     <td>Rate of pay expected: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Rate_of_pay_expected'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Current<br />
                                Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentAddress'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentCity'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentState'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentZip'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentHowLong'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Previous Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip1'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong1'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip2'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong2'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip3'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong3'].'</td>  
    </tr>
    
    
    <td> </td>
    <tr> 
     <td>Do you have the legal right to work in the United States? : </td><td>'.$_POST['Do_you_have_the_legal_right_to_work_in_the_United_States'].'</td>  
    </tr><tr> 
     <td>Date of Birth: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousDate_of_Birth'].'</td>  
    </tr><tr> 
     <td>Can you provide proof of age?: </td><td>'.$_POST['Can_you_provide_proof_of_age'].'</td>  
    </tr><tr> 
     <td>Have you worked for this company before?: </td><td>'.$_POST['Have_you_worked_for_this_company_before'].'</td>  
    </tr><tr> 
     <td>Where?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousWhere'].'</td>  
    </tr>
    <tr> 
     <td>Are you currently employed?: </td><td>'.$_POST['Are_you_currently_employed'].'</td>  
    </tr><tr> 
     <td>How were you referred to the company?: </td><td>'.$_POST['How_were_you_referred_to_the_company'].'</td>  
    </tr><tr> 
     <td>If yes, explain if you wish: </td><td>'.$_POST['If_yes_explain_if_you_wish'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td><h3><strong>EMPLOYMENT HISTORY</strong></h3></td>  
    </tr>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    
     <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer1'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom1'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To1'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip1'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson1'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber1'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld1'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage1'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving1'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed1'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing1'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer2'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom2'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To2'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip2'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson2'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber2'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld2'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage2'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving2'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed2'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing2'].'</td>  
     </tr>
    <td> </td>
    
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer3'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom3'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To3'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip3'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson3'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber3'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld3'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage3'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving3'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed3'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing3'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer4'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom4'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To4'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address4'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City4'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State4'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip4'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson4'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber4'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld4'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage4'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving4'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed4'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    <td> </td>
    <td><h3><strong>ACCIDENT RECORD</strong> for past 3 years or more (attach sheet if more space is required). If non, write none.</h3></td> 
    <td> </td> 
    <tr> 
     <td>Last Accident: </td><td>'.$_POST['Last_Accident1'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous11'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous12'].'</td>  
    </tr>
    
    <td> </td>
    <td><h3><strong>TRAFFIC CONVICTIONS</strong> and forfeitures for the past 3 years (other than parking violations). If none, write none.</h3></td> 
    <tr> 
     <td>Last Violation: </td><td>'.$_POST['Last_Accident2'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous21'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous22'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous23'].'</td>  
    </tr>
    
    
    <tr> 
     <td>Have you EVER been convicted of a DUI, DWI and/or DUBAL?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_DUI_DWI_and_or_DUBAL'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted for reckless driving?: </td><td>'.$_POST['Have_you_EVER_been_convicted_for_reckless_driving'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of fleeing or attempting to elude a police officer?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_fleeing_or_attempting_to_elude_a_police_officer'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of leaving the scene of an accident?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_leaving_the_scene_of_an_accident'].'</td>  
    </tr>
    
    <tr> 
     <td>Have you EVER been convicted of a railroad crossing violation?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_railroad_crossing_violation'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of passing a school bus while it is unloading or loading?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_passing_a_school_bus_while_it_is_unloading_or_loading'].'</td>  
    </tr><tr> 
     <td>Has your license EVER been suspended or revoked?: </td><td>'.$_POST['Has_your_license_EVER_been_suspended_or_revoked'].'</td>  
    </tr><tr> 
     <td>If so, please explain:: </td><td>'.$_POST['If_yes_explain_if_you_wish1'].'</td>  
    </tr><tr> 
     <td>Have you ever been convicted of a felony?: </td><td>'.$_POST['Have_you_ever_been_convicted_of_a_felony'].'</td>  
    </tr><tr> 
     <td>If so, please explain: </td><td>'.$_POST['If_yes_explain_if_you_wish2'].'</td>  
    </tr>
    <td> </td>
    
    
    
    <td> <h3>  <strong>EXPERIENCE AND QUALIFICATIONS - DRIVER</strong></h3></td> 
    <td> </td>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State1'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License1'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements1'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration1'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State2'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License2'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements2'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration2'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State3'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License3'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements3'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration3'].'</td>  
    </tr>
    <tr> 
     <td>A. Have you ever been denied a licens, permit or privilege to operate a motor vehicle?: </td><td>'.$_POST['Have_you_ever_been_denied_a_license'].'</td>  
    </tr>
    <tr> 
     <td>Please list any other driving experience (equipment type & approximate dates/miles driven): </td><td>'.$_POST['If_yes_explain_if_you_wish3'].'</td>  
    </tr>
    <tr> 
     <td><strong>Education </strong>listing highest grade completed and any degrees earned </td><td>'.$_POST['listing_highest_grade_completed_and_any_degrees_earned'].'</td>  
    </tr>
    
    <td> </td>
    
     <tr> 
     <td>Signature: </td><td>'.$_POST['Signature'].'</td>  
    </tr>
     <tr> 
     <td>Date: </td><td>'.$_POST['Date1'].'</td>  
    </tr>
    
     <td> </td>
    </tr>
    </table> 
    
    </body> 
    </html>';
    /* To send HTML mail, set the Content-type header. */ 
    $headers  = "MIME-Version: 1.0\r\n"; 
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
    $headers .= "From: " . $from . "\r\n"; 
    /* and now mail it */ 
    /*echo $message; die;*/
    @mail($to, $subject, $message, $headers);
    
    echo "<h4>Your message has been sent to us with your full application details.<br />
                <span>We will reply soon as soon as possible to follow up with you on our hiring process.  Thank you for considering A&S Transportation, Inc. for employment.</span></h4>";
    
    
    mysqli_close($link); 
    ?>
    
    
    

    Can you help with this new error?  Thank you all so much for all you have done so far to help me on this.  I am sorry for presenting such a monster code.. What a stinker. 

  14. I have the form on one site.. www.aandstransportation.com/employment and the database on another site.. www.bigschoolbus.com 

    I believe that is part of the problem here.. 

    but I have whitelisted both sites on the other's cpanel under Remote Mysql.. 

    any other suggestions? 

  15. OK.. fixed all the mysqli back to mysql 

     

    also fixed that last line by removing the $.. 

     

    SAME EXACT ERROR MESSAGE

     

    This is too simple a script to be this much of a trouble maker..   Again ANY and ALL HELP is greatly appreciated!!  I just want the nightmare over.. been up all night on this.   I will provide free discovery scuba dive in Florida to person who cracks the jackpot and has the solution to get this working.  Thanks guys for all help thus far.. aparently this script was a mess.. still is. 

     

    Again,  Here is updated code.. 

    <?php 
    //send data to sql database first
    
    $username="userhere";
    $password="passhere";
    $database="dbhere";
    $server="iphere:3307";
    
    $link=mysqli_connect ($server, $username, $password); 
    if (!$link)  { 
      die('Could not connect: ' . mysql_error()); 
      } 
    
    @mysql_select_db($database, $link); 
    
    $mysql_query=mysqli_query("INSERT INTO Driver_applicants (FirstName, LastName, Applicationdate, Phone, AltPhone, DL, StreetAddress, City, State, Zip) VALUES ('$_POST[APPLICANT_TO_COMPLETE_FirstName]','$_POST[APPLICANT_TO_COMPLETE_LastName]','$_POST[DateofApplication]','$_POST[APPLICANT_TO_COMPLETE_PhoneNumber]','$_POST[APPLICANT_TO_COMPLETE_SecondaryPhone]','$_POST[License1]','$_POST[APPLICANT_TO_COMPLETE_CurrentAddress]','$_POST[APPLICANT_TO_COMPLETE_CurrentCity]','$_POST[APPLICANT_TO_COMPLETE_CurrentState]','$_POST[APPLICANT_TO_COMPLETE_CurrentZip]'"); 
    
    if (!mysql_query($mysql_query,$link)) 
      { 
      die('Error: ' . mysql_error()); 
      } 
    
    //now send email to applications@aandstransportation.com
    $to = 'applications@aandstransportation.com';
    $from = $_POST['ApplicantName'];
    // $status = $_POST['Project_status'];
    /* subject */ 
    $subject = "Application For Employment Web Submission"; 
    /* message */ 
    $message = '<html> 
    <head> 
    <title>Application For Employment Web Submission</title> 
    </head> 
    <body> 
    <p>Dear '.$to.',</p> 
    <table>
    <tr> 
    <td colspan="2">"Employment Application Details:"</td>
    </tr><tr> 
     <td>Applicant Name: </td><td>'.$_POST['ApplicantName'].'</td>  
     </tr>  <tr> 
      <td>Date of Application: </td><td>'.$_POST['DateofApplication'].'</td>
    </tr><tr> 
     <td>Company: </td><td>'.$_POST['Company'].'</td>  
    </tr><tr> 
    <td>Address: </td><td>'.$_POST['Address'].'</td>  
    </tr><tr> 
     <td>Signature: </td><td>'.$_POST['Signature1'].'</td>  
    </tr><tr> 
     <td>Date: </td><td>'.$_POST['Date'].'</td>  
    </tr>
    
    <tr> 
                      <td></h3><strong> FOR COMPANY USE</strong> </h3></td>  
    </tr>
    
    <td> </td>
    <tr> 
     <td>APPLICANT HIRED: </td><td>'.$_POST['APPLICANTHIRED'].'</td>  
    </tr>
    <tr> 
     <td>District: </td><td>'.$_POST['District'].'</td>  
    </tr>
    <tr> 
     <td>DATE EMPLOYED: </td><td>'.$_POST['DATEEMPLOYED'].'</td>  
    </tr>
    <tr> 
     <td>Interviewing Manager: </td><td>'.$_POST['InterviewingManager'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['InterviewingManager_Signature'].'</td>  
    </tr>
    <tr> 
     <td>Human Resources: </td><td>'.$_POST['HumanResources'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['HumanResources_Signature'].'</td>  
    </tr>
    <td> </td>
    
    
    <tr> 
                    </h3>  <strong> <td>APPLICANT TO COMPLETE</h3></strong></td>  
    </tr>
    <tr> 
     <td>LastName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_LastName'].'</td>  
    </tr><tr> 
     <td>FirstName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_FirstName'].'</td>  
    </tr><tr> 
     <td>SSN: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SSN'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Secondary Phone: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SecondaryPhone'].'</td>  
    </tr><tr> 
     <td>Position(s) applied for: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Position_applied__for'].'</td>  
    </tr><tr> 
     <td>Rate of pay expected: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Rate_of_pay_expected'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Current<br />
                                Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentAddress'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentCity'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentState'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentZip'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentHowLong'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Previous Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip1'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong1'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip2'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong2'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip3'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong3'].'</td>  
    </tr>
    
    
    <td> </td>
    <tr> 
     <td>Do you have the legal right to work in the United States? : </td><td>'.$_POST['Do_you_have_the_legal_right_to_work_in_the_United_States'].'</td>  
    </tr><tr> 
     <td>Date of Birth: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousDate_of_Birth'].'</td>  
    </tr><tr> 
     <td>Can you provide proof of age?: </td><td>'.$_POST['Can_you_provide_proof_of_age'].'</td>  
    </tr><tr> 
     <td>Have you worked for this company before?: </td><td>'.$_POST['Have_you_worked_for_this_company_before'].'</td>  
    </tr><tr> 
     <td>Where?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousWhere'].'</td>  
    </tr>
    <tr> 
     <td>Are you currently employed?: </td><td>'.$_POST['Are_you_currently_employed'].'</td>  
    </tr><tr> 
     <td>How were you referred to the company?: </td><td>'.$_POST['How_were_you_referred_to_the_company'].'</td>  
    </tr><tr> 
     <td>If yes, explain if you wish: </td><td>'.$_POST['If_yes_explain_if_you_wish'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td><h3><strong>EMPLOYMENT HISTORY</strong></h3></td>  
    </tr>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    
     <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer1'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom1'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To1'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip1'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson1'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber1'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld1'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage1'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving1'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed1'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing1'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer2'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom2'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To2'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip2'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson2'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber2'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld2'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage2'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving2'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed2'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing2'].'</td>  
     </tr>
    <td> </td>
    
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer3'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom3'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To3'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip3'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson3'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber3'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld3'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage3'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving3'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed3'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing3'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer4'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom4'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To4'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address4'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City4'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State4'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip4'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson4'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber4'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld4'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage4'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving4'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed4'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    <td> </td>
    <td><h3><strong>ACCIDENT RECORD</strong> for past 3 years or more (attach sheet if more space is required). If non, write none.</h3></td> 
    <td> </td> 
    <tr> 
     <td>Last Accident: </td><td>'.$_POST['Last_Accident1'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous11'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous12'].'</td>  
    </tr>
    
    <td> </td>
    <td><h3><strong>TRAFFIC CONVICTIONS</strong> and forfeitures for the past 3 years (other than parking violations). If none, write none.</h3></td> 
    <tr> 
     <td>Last Violation: </td><td>'.$_POST['Last_Accident2'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous21'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous22'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous23'].'</td>  
    </tr>
    
    
    <tr> 
     <td>Have you EVER been convicted of a DUI, DWI and/or DUBAL?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_DUI_DWI_and_or_DUBAL'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted for reckless driving?: </td><td>'.$_POST['Have_you_EVER_been_convicted_for_reckless_driving'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of fleeing or attempting to elude a police officer?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_fleeing_or_attempting_to_elude_a_police_officer'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of leaving the scene of an accident?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_leaving_the_scene_of_an_accident'].'</td>  
    </tr>
    
    <tr> 
     <td>Have you EVER been convicted of a railroad crossing violation?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_railroad_crossing_violation'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of passing a school bus while it is unloading or loading?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_passing_a_school_bus_while_it_is_unloading_or_loading'].'</td>  
    </tr><tr> 
     <td>Has your license EVER been suspended or revoked?: </td><td>'.$_POST['Has_your_license_EVER_been_suspended_or_revoked'].'</td>  
    </tr><tr> 
     <td>If so, please explain:: </td><td>'.$_POST['If_yes_explain_if_you_wish1'].'</td>  
    </tr><tr> 
     <td>Have you ever been convicted of a felony?: </td><td>'.$_POST['Have_you_ever_been_convicted_of_a_felony'].'</td>  
    </tr><tr> 
     <td>If so, please explain: </td><td>'.$_POST['If_yes_explain_if_you_wish2'].'</td>  
    </tr>
    <td> </td>
    
    
    
    <td> <h3>  <strong>EXPERIENCE AND QUALIFICATIONS - DRIVER</strong></h3></td> 
    <td> </td>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State1'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License1'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements1'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration1'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State2'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License2'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements2'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration2'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State3'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License3'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements3'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration3'].'</td>  
    </tr>
    <tr> 
     <td>A. Have you ever been denied a licens, permit or privilege to operate a motor vehicle?: </td><td>'.$_POST['Have_you_ever_been_denied_a_license'].'</td>  
    </tr>
    <tr> 
     <td>Please list any other driving experience (equipment type & approximate dates/miles driven): </td><td>'.$_POST['If_yes_explain_if_you_wish3'].'</td>  
    </tr>
    <tr> 
     <td><strong>Education </strong>listing highest grade completed and any degrees earned </td><td>'.$_POST['listing_highest_grade_completed_and_any_degrees_earned'].'</td>  
    </tr>
    
    <td> </td>
    
     <tr> 
     <td>Signature: </td><td>'.$_POST['Signature'].'</td>  
    </tr>
     <tr> 
     <td>Date: </td><td>'.$_POST['Date1'].'</td>  
    </tr>
    
     <td> </td>
    </tr>
    </table> 
    
    </body> 
    </html>';
    /* To send HTML mail, set the Content-type header. */ 
    $headers  = "MIME-Version: 1.0\r\n"; 
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
    $headers .= "From: " . $from . "\r\n"; 
    /* and now mail it */ 
    /*echo $message; die;*/
    @mail($to, $subject, $message, $headers);
    
    echo "<h4>Your message has been sent to us with your full application details.<br />
                <span>We will reply soon as soon as possible to follow up with you on our hiring process.  Thank you for considering A&S Transportation, Inc. for employment.</span></h4>";
    
    
    mysql_close($link); 
    ?>
    
    
    

     : ) HELP :) 

  16. Simeon.. well you are great!!! 

     

    but we still have an issue.. It did get rid of all the syntax errors.. I uploaded the code and ran it and got another error.. --- now I cannot connect to the database.. 

    I have triple checked the user, pass, ip and all parameters.. I think it is just that they are on two seperate servers, the form and the database.. 

    I have whitelisted both on the other server in cpanel so that should not be the issue.. your suggestions??

     

     

    Here is the error now... 

     

    Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '50.97.101.236' (111) in/home2/astrans/public_html/employment/contact_action_contact.php on line 9
    Could not connect: Can't connect to MySQL server on '50.97.101.236' (111)

     

    Here is the updated code: 

    <?php 
    //send data to sql database first
    
    $username="myusernamehere";
    $password="databasepasswordhere";
    $database="databasenamehere";
    $server="databaseIPaddresshere:3307";
    
    $link=mysql_connect ($server, $username, $password); 
    if (!$link)  { 
      die('Could not connect: ' . mysql_error()); 
      } 
    
    @mysql_select_db($database, $link); 
    
    $mysqli_query=mysqli_query("INSERT INTO Driver_applicants (FirstName, LastName, Applicationdate, Phone, AltPhone, DL, StreetAddress, City, State, Zip) VALUES ('$_POST[APPLICANT_TO_COMPLETE_FirstName]','$_POST[APPLICANT_TO_COMPLETE_LastName]','$_POST[DateofApplication]','$_POST[APPLICANT_TO_COMPLETE_PhoneNumber]','$_POST[APPLICANT_TO_COMPLETE_SecondaryPhone]','$_POST[License1]','$_POST[APPLICANT_TO_COMPLETE_CurrentAddress]','$_POST[APPLICANT_TO_COMPLETE_CurrentCity]','$_POST[APPLICANT_TO_COMPLETE_CurrentState]','$_POST[APPLICANT_TO_COMPLETE_CurrentZip]'"); 
    
    if (!mysql_query($mysql_query,$link)) 
      { 
      die('Error: ' . mysql_error()); 
      } 
    
    //now send email to applications@aandstransportation.com
    $to = 'applications@aandstransportation.com';
    $from = $_POST['ApplicantName'];
    // $status = $_POST['Project_status'];
    /* subject */ 
    $subject = "Application For Employment Web Submission"; 
    /* message */ 
    $message = '<html> 
    <head> 
    <title>Application For Employment Web Submission</title> 
    </head> 
    <body> 
    <p>Dear '.$to.',</p> 
    <table>
    <tr> 
    <td colspan="2">"Employment Application Details:"</td>
    </tr><tr> 
     <td>Applicant Name: </td><td>'.$_POST['ApplicantName'].'</td>  
     </tr>  <tr> 
      <td>Date of Application: </td><td>'.$_POST['DateofApplication'].'</td>
    </tr><tr> 
     <td>Company: </td><td>'.$_POST['Company'].'</td>  
    </tr><tr> 
    <td>Address: </td><td>'.$_POST['Address'].'</td>  
    </tr><tr> 
     <td>Signature: </td><td>'.$_POST['Signature1'].'</td>  
    </tr><tr> 
     <td>Date: </td><td>'.$_POST['Date'].'</td>  
    </tr>
    
    <tr> 
                      <td></h3><strong> FOR COMPANY USE</strong> </h3></td>  
    </tr>
    
    <td> </td>
    <tr> 
     <td>APPLICANT HIRED: </td><td>'.$_POST['APPLICANTHIRED'].'</td>  
    </tr>
    <tr> 
     <td>District: </td><td>'.$_POST['District'].'</td>  
    </tr>
    <tr> 
     <td>DATE EMPLOYED: </td><td>'.$_POST['DATEEMPLOYED'].'</td>  
    </tr>
    <tr> 
     <td>Interviewing Manager: </td><td>'.$_POST['InterviewingManager'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['InterviewingManager_Signature'].'</td>  
    </tr>
    <tr> 
     <td>Human Resources: </td><td>'.$_POST['HumanResources'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['HumanResources_Signature'].'</td>  
    </tr>
    <td> </td>
    
    
    <tr> 
                    </h3>  <strong> <td>APPLICANT TO COMPLETE</h3></strong></td>  
    </tr>
    <tr> 
     <td>LastName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_LastName'].'</td>  
    </tr><tr> 
     <td>FirstName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_FirstName'].'</td>  
    </tr><tr> 
     <td>SSN: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SSN'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Secondary Phone: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SecondaryPhone'].'</td>  
    </tr><tr> 
     <td>Position(s) applied for: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Position_applied__for'].'</td>  
    </tr><tr> 
     <td>Rate of pay expected: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Rate_of_pay_expected'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Current<br />
                                Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentAddress'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentCity'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentState'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentZip'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentHowLong'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Previous Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip1'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong1'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip2'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong2'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip3'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong3'].'</td>  
    </tr>
    
    
    <td> </td>
    <tr> 
     <td>Do you have the legal right to work in the United States? : </td><td>'.$_POST['Do_you_have_the_legal_right_to_work_in_the_United_States'].'</td>  
    </tr><tr> 
     <td>Date of Birth: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousDate_of_Birth'].'</td>  
    </tr><tr> 
     <td>Can you provide proof of age?: </td><td>'.$_POST['Can_you_provide_proof_of_age'].'</td>  
    </tr><tr> 
     <td>Have you worked for this company before?: </td><td>'.$_POST['Have_you_worked_for_this_company_before'].'</td>  
    </tr><tr> 
     <td>Where?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousWhere'].'</td>  
    </tr>
    <tr> 
     <td>Are you currently employed?: </td><td>'.$_POST['Are_you_currently_employed'].'</td>  
    </tr><tr> 
     <td>How were you referred to the company?: </td><td>'.$_POST['How_were_you_referred_to_the_company'].'</td>  
    </tr><tr> 
     <td>If yes, explain if you wish: </td><td>'.$_POST['If_yes_explain_if_you_wish'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td><h3><strong>EMPLOYMENT HISTORY</strong></h3></td>  
    </tr>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    
     <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer1'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom1'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To1'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip1'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson1'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber1'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld1'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage1'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving1'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed1'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing1'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer2'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom2'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To2'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip2'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson2'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber2'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld2'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage2'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving2'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed2'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing2'].'</td>  
     </tr>
    <td> </td>
    
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer3'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom3'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To3'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip3'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson3'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber3'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld3'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage3'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving3'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed3'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing3'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer4'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom4'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To4'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address4'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City4'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State4'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip4'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson4'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber4'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld4'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage4'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving4'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed4'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    <td> </td>
    <td><h3><strong>ACCIDENT RECORD</strong> for past 3 years or more (attach sheet if more space is required). If non, write none.</h3></td> 
    <td> </td> 
    <tr> 
     <td>Last Accident: </td><td>'.$_POST['Last_Accident1'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous11'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous12'].'</td>  
    </tr>
    
    <td> </td>
    <td><h3><strong>TRAFFIC CONVICTIONS</strong> and forfeitures for the past 3 years (other than parking violations). If none, write none.</h3></td> 
    <tr> 
     <td>Last Violation: </td><td>'.$_POST['Last_Accident2'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous21'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous22'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous23'].'</td>  
    </tr>
    
    
    <tr> 
     <td>Have you EVER been convicted of a DUI, DWI and/or DUBAL?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_DUI_DWI_and_or_DUBAL'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted for reckless driving?: </td><td>'.$_POST['Have_you_EVER_been_convicted_for_reckless_driving'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of fleeing or attempting to elude a police officer?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_fleeing_or_attempting_to_elude_a_police_officer'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of leaving the scene of an accident?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_leaving_the_scene_of_an_accident'].'</td>  
    </tr>
    
    <tr> 
     <td>Have you EVER been convicted of a railroad crossing violation?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_railroad_crossing_violation'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of passing a school bus while it is unloading or loading?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_passing_a_school_bus_while_it_is_unloading_or_loading'].'</td>  
    </tr><tr> 
     <td>Has your license EVER been suspended or revoked?: </td><td>'.$_POST['Has_your_license_EVER_been_suspended_or_revoked'].'</td>  
    </tr><tr> 
     <td>If so, please explain:: </td><td>'.$_POST['If_yes_explain_if_you_wish1'].'</td>  
    </tr><tr> 
     <td>Have you ever been convicted of a felony?: </td><td>'.$_POST['Have_you_ever_been_convicted_of_a_felony'].'</td>  
    </tr><tr> 
     <td>If so, please explain: </td><td>'.$_POST['If_yes_explain_if_you_wish2'].'</td>  
    </tr>
    <td> </td>
    
    
    
    <td> <h3>  <strong>EXPERIENCE AND QUALIFICATIONS - DRIVER</strong></h3></td> 
    <td> </td>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State1'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License1'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements1'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration1'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State2'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License2'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements2'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration2'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State3'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License3'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements3'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration3'].'</td>  
    </tr>
    <tr> 
     <td>A. Have you ever been denied a licens, permit or privilege to operate a motor vehicle?: </td><td>'.$_POST['Have_you_ever_been_denied_a_license'].'</td>  
    </tr>
    <tr> 
     <td>Please list any other driving experience (equipment type & approximate dates/miles driven): </td><td>'.$_POST['If_yes_explain_if_you_wish3'].'</td>  
    </tr>
    <tr> 
     <td><strong>Education </strong>listing highest grade completed and any degrees earned </td><td>'.$_POST['listing_highest_grade_completed_and_any_degrees_earned'].'</td>  
    </tr>
    
    <td> </td>
    
     <tr> 
     <td>Signature: </td><td>'.$_POST['Signature'].'</td>  
    </tr>
     <tr> 
     <td>Date: </td><td>'.$_POST['Date1'].'</td>  
    </tr>
    
     <td> </td>
    </tr>
    </table> 
    
    </body> 
    </html>';
    /* To send HTML mail, set the Content-type header. */ 
    $headers  = "MIME-Version: 1.0\r\n"; 
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
    $headers .= "From: " . $from . "\r\n"; 
    /* and now mail it */ 
    /*echo $message; die;*/
    @mail($to, $subject, $message, $headers);
    
    echo "<h4>Your message has been sent to us with your full application details.<br />
                <span>We will reply soon as soon as possible to follow up with you on our hiring process.  Thank you for considering A&S Transportation, Inc. for employment.</span></h4>";
    
    
    $mysql_close($link); 
    ?>
    
    
    

    Your thoughts? 

  17. OK.. I fixed the code per above from you Simeon.. thanks.. that helped but did not get rid of the errors entirely.. still have issues.. 

    Simeon.. if I removed the ' from line 38, it gives me an error on line 40.. but when I put it back in it dissapears?? so I left that in.. so 

     

    Lines 16, lines 25 and lines 38.. still show error.. syntax..

     

    here is updated code.. 

    <?php 
    //send data to sql database first
    
    $username="xxxxx";
    $password="xxxx";
    $database="xxxx";
    $server="xxxsitexxx:3307";
    
    $link=mysql_connect ($server, $username, $password); 
    if (!$link)  { 
      die('Could not connect: ' . mysql_error()); 
      } 
    
    @mysql_select_db($database, $link); 
    
    $mysql_query=(INSERT INTO Driver_applicants (FirstName, LastName, Applicationdate, Phone, AltPhone, DL, StreetAddress, City, State, Zip) VALUES ("'$_POST[APPLICANT_TO_COMPLETE_FirstName]'","'$_POST[APPLICANT_TO_COMPLETE_LastName]'","'$_POST[DateofApplication]'","'$_POST[APPLICANT_TO_COMPLETE_PhoneNumber]'","'$_POST[APPLICANT_TO_COMPLETE_SecondaryPhone]'","'$_POST[License1]'","'$_POST[APPLICANT_TO_COMPLETE_CurrentAddress]'","'$_POST[APPLICANT_TO_COMPLETE_CurrentCity]'","'$_POST[APPLICANT_TO_COMPLETE_CurrentState]'","'$_POST[APPLICANT_TO_COMPLETE_CurrentZip]'")"; 
    
    if (!mysql_query($mysql_query,$link)) 
      { 
      die('Error: ' . mysql_error()); 
      } 
    
    //now send email to applications@aandstransportation.com
    $to = 'applications@aandstransportation.com';
    $from = $_POST['ApplicantName'];
    // $status = $_POST['Project_status'];
    /* subject */ 
    $subject = "Application For Employment Web Submission"; 
    /* message */ 
    $message = '<html> 
    <head> 
    <title>Application For Employment Web Submission</title> 
    </head> 
    <body> 
    <p>Dear '.$to.',</p> 
    <table>
    <tr> 
    <td colspan="2">"'Employment Application Details:"</td>
    </tr><tr> 
     <td>Applicant Name: </td><td>'.$_POST['ApplicantName'].'</td>  
     </tr>  <tr> 
      <td>Date of Application: </td><td>'.$_POST['DateofApplication'].'</td>
    </tr><tr> 
     <td>Company: </td><td>'.$_POST['Company'].'</td>  
    </tr><tr> 
    <td>Address: </td><td>'.$_POST['Address'].'</td>  
    </tr><tr> 
     <td>Signature: </td><td>'.$_POST['Signature1'].'</td>  
    </tr><tr> 
     <td>Date: </td><td>'.$_POST['Date'].'</td>  
    </tr>
    
    <tr> 
                      <td></h3><strong> FOR COMPANY USE</strong> </h3></td>  
    </tr>
    
    <td> </td>
    <tr> 
     <td>APPLICANT HIRED: </td><td>'.$_POST['APPLICANTHIRED'].'</td>  
    </tr>
    <tr> 
     <td>District: </td><td>'.$_POST['District'].'</td>  
    </tr>
    <tr> 
     <td>DATE EMPLOYED: </td><td>'.$_POST['DATEEMPLOYED'].'</td>  
    </tr>
    <tr> 
     <td>Interviewing Manager: </td><td>'.$_POST['InterviewingManager'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['InterviewingManager_Signature'].'</td>  
    </tr>
    <tr> 
     <td>Human Resources: </td><td>'.$_POST['HumanResources'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['HumanResources_Signature'].'</td>  
    </tr>
    <td> </td>
    
    
    <tr> 
                    </h3>  <strong> <td>APPLICANT TO COMPLETE</h3></strong></td>  
    </tr>
    <tr> 
     <td>LastName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_LastName'].'</td>  
    </tr><tr> 
     <td>FirstName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_FirstName'].'</td>  
    </tr><tr> 
     <td>SSN: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SSN'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Secondary Phone: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SecondaryPhone'].'</td>  
    </tr><tr> 
     <td>Position(s) applied for: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Position_applied__for'].'</td>  
    </tr><tr> 
     <td>Rate of pay expected: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Rate_of_pay_expected'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Current<br />
                                Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentAddress'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentCity'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentState'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentZip'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentHowLong'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Previous Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip1'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong1'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip2'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong2'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip3'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong3'].'</td>  
    </tr>
    
    
    <td> </td>
    <tr> 
     <td>Do you have the legal right to work in the United States? : </td><td>'.$_POST['Do_you_have_the_legal_right_to_work_in_the_United_States'].'</td>  
    </tr><tr> 
     <td>Date of Birth: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousDate_of_Birth'].'</td>  
    </tr><tr> 
     <td>Can you provide proof of age?: </td><td>'.$_POST['Can_you_provide_proof_of_age'].'</td>  
    </tr><tr> 
     <td>Have you worked for this company before?: </td><td>'.$_POST['Have_you_worked_for_this_company_before'].'</td>  
    </tr><tr> 
     <td>Where?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousWhere'].'</td>  
    </tr>
    <tr> 
     <td>Are you currently employed?: </td><td>'.$_POST['Are_you_currently_employed'].'</td>  
    </tr><tr> 
     <td>How were you referred to the company?: </td><td>'.$_POST['How_were_you_referred_to_the_company'].'</td>  
    </tr><tr> 
     <td>If yes, explain if you wish: </td><td>'.$_POST['If_yes_explain_if_you_wish'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td><h3><strong>EMPLOYMENT HISTORY</strong></h3></td>  
    </tr>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    
     <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer1'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom1'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To1'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip1'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson1'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber1'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld1'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage1'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving1'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed1'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing1'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer2'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom2'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To2'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip2'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson2'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber2'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld2'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage2'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving2'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed2'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing2'].'</td>  
     </tr>
    <td> </td>
    
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer3'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom3'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To3'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip3'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson3'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber3'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld3'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage3'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving3'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed3'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing3'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer4'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom4'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To4'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address4'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City4'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State4'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip4'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson4'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber4'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld4'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage4'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving4'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed4'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    <td> </td>
    <td><h3><strong>ACCIDENT RECORD</strong> for past 3 years or more (attach sheet if more space is required). If non, write none.</h3></td> 
    <td> </td> 
    <tr> 
     <td>Last Accident: </td><td>'.$_POST['Last_Accident1'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous11'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous12'].'</td>  
    </tr>
    
    <td> </td>
    <td><h3><strong>TRAFFIC CONVICTIONS</strong> and forfeitures for the past 3 years (other than parking violations). If none, write none.</h3></td> 
    <tr> 
     <td>Last Violation: </td><td>'.$_POST['Last_Accident2'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous21'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous22'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous23'].'</td>  
    </tr>
    
    
    <tr> 
     <td>Have you EVER been convicted of a DUI, DWI and/or DUBAL?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_DUI_DWI_and_or_DUBAL'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted for reckless driving?: </td><td>'.$_POST['Have_you_EVER_been_convicted_for_reckless_driving'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of fleeing or attempting to elude a police officer?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_fleeing_or_attempting_to_elude_a_police_officer'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of leaving the scene of an accident?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_leaving_the_scene_of_an_accident'].'</td>  
    </tr>
    
    <tr> 
     <td>Have you EVER been convicted of a railroad crossing violation?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_railroad_crossing_violation'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of passing a school bus while it is unloading or loading?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_passing_a_school_bus_while_it_is_unloading_or_loading'].'</td>  
    </tr><tr> 
     <td>Has your license EVER been suspended or revoked?: </td><td>'.$_POST['Has_your_license_EVER_been_suspended_or_revoked'].'</td>  
    </tr><tr> 
     <td>If so, please explain:: </td><td>'.$_POST['If_yes_explain_if_you_wish1'].'</td>  
    </tr><tr> 
     <td>Have you ever been convicted of a felony?: </td><td>'.$_POST['Have_you_ever_been_convicted_of_a_felony'].'</td>  
    </tr><tr> 
     <td>If so, please explain: </td><td>'.$_POST['If_yes_explain_if_you_wish2'].'</td>  
    </tr>
    <td> </td>
    
    
    
    <td> <h3>  <strong>EXPERIENCE AND QUALIFICATIONS - DRIVER</strong></h3></td> 
    <td> </td>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State1'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License1'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements1'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration1'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State2'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License2'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements2'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration2'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State3'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License3'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements3'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration3'].'</td>  
    </tr>
    <tr> 
     <td>A. Have you ever been denied a licens, permit or privilege to operate a motor vehicle?: </td><td>'.$_POST['Have_you_ever_been_denied_a_license'].'</td>  
    </tr>
    <tr> 
     <td>Please list any other driving experience (equipment type & approximate dates/miles driven): </td><td>'.$_POST['If_yes_explain_if_you_wish3'].'</td>  
    </tr>
    <tr> 
     <td><strong>Education </strong>listing highest grade completed and any degrees earned </td><td>'.$_POST['listing_highest_grade_completed_and_any_degrees_earned'].'</td>  
    </tr>
    
    <td> </td>
    
     <tr> 
     <td>Signature: </td><td>'.$_POST['Signature'].'</td>  
    </tr>
     <tr> 
     <td>Date: </td><td>'.$_POST['Date1'].'</td>  
    </tr>
    
     <td> </td>
    </tr>
    </table> 
    
    </body> 
    </html>';
    /* To send HTML mail, set the Content-type header. */ 
    $headers  = "MIME-Version: 1.0\r\n"; 
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
    $headers .= "From: " . $from . "\r\n"; 
    /* and now mail it */ 
    /*echo $message; die;*/
    @mail($to, $subject, $message, $headers);
    
    echo "<h4>Your message has been sent to us with your full application details.<br />
                <span>We will reply soon as soon as possible to follow up with you on our hiring process.  Thank you for considering A&S Transportation, Inc. for employment.</span></h4>";
    
    
    $mysql_close($link); 
    ?>
    
    

    Any suggestions? 

  18. Gamma1itman... thank you so much for that.  

     

    I have shared hosting on my website so the PHPAdmin is very easy and comfortable to me and already there.. Apache and MySql I am doing better at but still need more experience.. I just don't have the patience for the details. 

     

    I have some experience in my early years with linux and novel.  

     

    I will definately check out Bluefish.. ASAP today. 

    Just downloaded phpstorm to see if it can help me. 

     

    In the interim.. can you help with this monster code? 

    <?php 
    //send data to sql database first
    
    $username="xxxx";
    $password="XXXX";
    $database="XXXXX";
    $server="XXXsitenamexxx:3307;
    
    $link=mysql_connect =($server, $username, $password); 
    if (!$link)  { 
      die('Could not connect: ' . mysql_error()); 
      } 
    
    @mysql_select_db($database, $link); 
    
    $mysql_query=(INSERT INTO Driver_applicants (FirstName, LastName, Applicationdate, Phone, AltPhone, DL, StreetAddress, City, State, Zip) VALUES ("'$_POST[APPLICANT_TO_COMPLETE_FirstName]'","'$_POST[APPLICANT_TO_COMPLETE_LastName]'","'$_POST[DateofApplication]'","'$_POST[APPLICANT_TO_COMPLETE_PhoneNumber]'","'$_POST[APPLICANT_TO_COMPLETE_SecondaryPhone]'","'$_POST[License1]'","'$_POST[APPLICANT_TO_COMPLETE_CurrentAddress]'","'$_POST[APPLICANT_TO_COMPLETE_CurrentCity]'","'$_POST[APPLICANT_TO_COMPLETE_CurrentState]'","'$_POST[APPLICANT_TO_COMPLETE_CurrentZip]'")"; 
    
    if (!mysql_query($mysql_query,$link)) 
      { 
      die('Error: ' . mysql_error()); 
      } 
    
    //now send email to applications@aandstransportation.com
    $to = 'applications@aandstransportation.com';
    $from = $_POST['ApplicantName'];
    // $status = $_POST['Project_status'];
    /* subject */ 
    $subject = "Application For Employment Web Submission"; 
    /* message */ 
    $message = '<html> 
    <head> 
    <title>Application For Employment Web Submission</title> 
    </head> 
    <body> 
    <p>Dear '.$to.',</p> 
    <table>
    <tr> 
    <td colspan="2">"'Employment Application Details:"</td>
    </tr><tr> 
     <td>Applicant Name: </td><td>'.$_POST['ApplicantName'].'</td>  
     </tr>  <tr> 
      <td>Date of Application: </td><td>'.$_POST['DateofApplication'].'</td>
    </tr><tr> 
     <td>Company: </td><td>'.$_POST['Company'].'</td>  
    </tr><tr> 
    <td>Address: </td><td>'.$_POST['Address'].'</td>  
    </tr><tr> 
     <td>Signature: </td><td>'.$_POST['Signature1'].'</td>  
    </tr><tr> 
     <td>Date: </td><td>'.$_POST['Date'].'</td>  
    </tr>
    
    <tr> 
                      <td></h3><strong> FOR COMPANY USE</strong> </h3></td>  
    </tr>
    
    <td> </td>
    <tr> 
     <td>APPLICANT HIRED: </td><td>'.$_POST['APPLICANTHIRED'].'</td>  
    </tr>
    <tr> 
     <td>District: </td><td>'.$_POST['District'].'</td>  
    </tr>
    <tr> 
     <td>DATE EMPLOYED: </td><td>'.$_POST['DATEEMPLOYED'].'</td>  
    </tr>
    <tr> 
     <td>Interviewing Manager: </td><td>'.$_POST['InterviewingManager'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['InterviewingManager_Signature'].'</td>  
    </tr>
    <tr> 
     <td>Human Resources: </td><td>'.$_POST['HumanResources'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['HumanResources_Signature'].'</td>  
    </tr>
    <td> </td>
    
    
    <tr> 
                    </h3>  <strong> <td>APPLICANT TO COMPLETE</h3></strong></td>  
    </tr>
    <tr> 
     <td>LastName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_LastName'].'</td>  
    </tr><tr> 
     <td>FirstName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_FirstName'].'</td>  
    </tr><tr> 
     <td>SSN: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SSN'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Secondary Phone: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SecondaryPhone'].'</td>  
    </tr><tr> 
     <td>Position(s) applied for: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Position_applied__for'].'</td>  
    </tr><tr> 
     <td>Rate of pay expected: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Rate_of_pay_expected'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Current<br />
                                Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentAddress'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentCity'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentState'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentZip'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentHowLong'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Previous Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip1'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong1'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip2'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong2'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip3'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong3'].'</td>  
    </tr>
    
    
    <td> </td>
    <tr> 
     <td>Do you have the legal right to work in the United States? : </td><td>'.$_POST['Do_you_have_the_legal_right_to_work_in_the_United_States'].'</td>  
    </tr><tr> 
     <td>Date of Birth: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousDate_of_Birth'].'</td>  
    </tr><tr> 
     <td>Can you provide proof of age?: </td><td>'.$_POST['Can_you_provide_proof_of_age'].'</td>  
    </tr><tr> 
     <td>Have you worked for this company before?: </td><td>'.$_POST['Have_you_worked_for_this_company_before'].'</td>  
    </tr><tr> 
     <td>Where?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousWhere'].'</td>  
    </tr>
    <tr> 
     <td>Are you currently employed?: </td><td>'.$_POST['Are_you_currently_employed'].'</td>  
    </tr><tr> 
     <td>How were you referred to the company?: </td><td>'.$_POST['How_were_you_referred_to_the_company'].'</td>  
    </tr><tr> 
     <td>If yes, explain if you wish: </td><td>'.$_POST['If_yes_explain_if_you_wish'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td><h3><strong>EMPLOYMENT HISTORY</strong></h3></td>  
    </tr>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    
     <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer1'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom1'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To1'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip1'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson1'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber1'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld1'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage1'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving1'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed1'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing1'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer2'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom2'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To2'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip2'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson2'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber2'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld2'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage2'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving2'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed2'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing2'].'</td>  
     </tr>
    <td> </td>
    
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer3'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom3'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To3'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip3'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson3'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber3'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld3'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage3'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving3'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed3'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing3'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer4'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom4'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To4'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address4'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City4'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State4'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip4'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson4'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber4'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld4'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage4'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving4'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed4'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    <td> </td>
    <td><h3><strong>ACCIDENT RECORD</strong> for past 3 years or more (attach sheet if more space is required). If non, write none.</h3></td> 
    <td> </td> 
    <tr> 
     <td>Last Accident: </td><td>'.$_POST['Last_Accident1'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous11'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous12'].'</td>  
    </tr>
    
    <td> </td>
    <td><h3><strong>TRAFFIC CONVICTIONS</strong> and forfeitures for the past 3 years (other than parking violations). If none, write none.</h3></td> 
    <tr> 
     <td>Last Violation: </td><td>'.$_POST['Last_Accident2'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous21'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous22'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous23'].'</td>  
    </tr>
    
    
    <tr> 
     <td>Have you EVER been convicted of a DUI, DWI and/or DUBAL?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_DUI_DWI_and_or_DUBAL'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted for reckless driving?: </td><td>'.$_POST['Have_you_EVER_been_convicted_for_reckless_driving'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of fleeing or attempting to elude a police officer?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_fleeing_or_attempting_to_elude_a_police_officer'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of leaving the scene of an accident?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_leaving_the_scene_of_an_accident'].'</td>  
    </tr>
    
    <tr> 
     <td>Have you EVER been convicted of a railroad crossing violation?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_railroad_crossing_violation'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of passing a school bus while it is unloading or loading?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_passing_a_school_bus_while_it_is_unloading_or_loading'].'</td>  
    </tr><tr> 
     <td>Has your license EVER been suspended or revoked?: </td><td>'.$_POST['Has_your_license_EVER_been_suspended_or_revoked'].'</td>  
    </tr><tr> 
     <td>If so, please explain:: </td><td>'.$_POST['If_yes_explain_if_you_wish1'].'</td>  
    </tr><tr> 
     <td>Have you ever been convicted of a felony?: </td><td>'.$_POST['Have_you_ever_been_convicted_of_a_felony'].'</td>  
    </tr><tr> 
     <td>If so, please explain: </td><td>'.$_POST['If_yes_explain_if_you_wish2'].'</td>  
    </tr>
    <td> </td>
    
    
    
    <td> <h3>  <strong>EXPERIENCE AND QUALIFICATIONS - DRIVER</strong></h3></td> 
    <td> </td>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State1'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License1'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements1'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration1'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State2'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License2'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements2'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration2'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State3'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License3'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements3'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration3'].'</td>  
    </tr>
    <tr> 
     <td>A. Have you ever been denied a licens, permit or privilege to operate a motor vehicle?: </td><td>'.$_POST['Have_you_ever_been_denied_a_license'].'</td>  
    </tr>
    <tr> 
     <td>Please list any other driving experience (equipment type & approximate dates/miles driven): </td><td>'.$_POST['If_yes_explain_if_you_wish3'].'</td>  
    </tr>
    <tr> 
     <td><strong>Education </strong>listing highest grade completed and any degrees earned </td><td>'.$_POST['listing_highest_grade_completed_and_any_degrees_earned'].'</td>  
    </tr>
    
    <td> </td>
    
     <tr> 
     <td>Signature: </td><td>'.$_POST['Signature'].'</td>  
    </tr>
     <tr> 
     <td>Date: </td><td>'.$_POST['Date1'].'</td>  
    </tr>
    
     <td> </td>
    </tr>
    </table> 
    
    </body> 
    </html>';
    /* To send HTML mail, set the Content-type header. */ 
    $headers  = "MIME-Version: 1.0\r\n"; 
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
    $headers .= "From: " . $from . "\r\n"; 
    /* and now mail it */ 
    /*echo $message; die;*/
    @mail($to, $subject, $message, $headers);
    
    echo "<h4>Your message has been sent to us with your full application details.<br />
                <span>We will reply soon as soon as possible to follow up with you on our hiring process.  Thank you for considering A&S Transportation, Inc. for employment.</span></h4>";
    
    
    $mysql_close($link); 
    ?>
    
    
    

    The errors are lines 16, 38 and 40.. All three say SYNTAX Errors.. .  

    I urgently need to correct these as we have to hire about 40 bus drivers within the next two weeks so we can have them trained and ready for the start of the school year.  So timing is critical.. otherwise I would just try and tinker till fixed.. I need help because it is time sensitive.   Please if you can take a gander to help me figure out what is the issue I would be most grateful.  

  19.  you definitively need a better editor... this line is evidently wrong and the one causing (most likely) all the subsequent errors that you are getting... a good editor show in color immediately the problematic line.  You are missing the enclosing double quotes for the string.

     

    For editors... well is a bunch of decent ones... PhpStorm is one of them

     

    Do you mean for each field?   Like This... 

    $mysql_query=("INSERT INTO Driver_applicants (FirstName, LastName, Applicationdate, Phone, AltPhone, DL, StreetAddress, City, State, Zip) VALUES ("'$_POST[APPLICANT_TO_COMPLETE_FirstName]'","'$_POST[APPLICANT_TO_COMPLETE_LastName]'","'$_POST[DateofApplication]'","'$_POST[APPLICANT_TO_COMPLETE_PhoneNumber]'","'$_POST[APPLICANT_TO_COMPLETE_SecondaryPhone]'","'$_POST[License1]'","'$_POST[APPLICANT_TO_COMPLETE_CurrentAddress]'","'$_POST[APPLICANT_TO_COMPLETE_CurrentCity]'","'$_POST[APPLICANT_TO_COMPLETE_CurrentState]'","'$_POST[APPLICANT_TO_COMPLETE_CurrentZip]'"");
    

    Still now showing errors on line 16 and line 25  that is the only two lines.. UG.. this code is frustrating.  I am not sure how you guru's do it all day. :)   Thanks so much for your input.. 

    I am checking out PHPStorm now.. mikosiko.. thanks for trying to help me :) 

  20. Can you let me know what you did to change it?  Just so I don't make the mistake again? 

     

    While I very much appreciate your help, I hope not to bother you with redundant efforts in the future.  

     

    Thanks so very much!

     

    Regards, Tina 

  21. It is simeon.. 

    I just left off that top half for security reasons.. here it is in total.. 

    <?php 
    //send data to sql database first
    
    $username="xxxxxx";
    $password="xxxxxxxxxxx";
    $database="xxxxxxx";
    $server="xx.xx.xxx.xx:3307;
    
    $link=mysql_connect =($server, $username, $password); 
    if (!$link)  { 
      die('Could not connect: ' . mysql_error()); 
      } 
    
    @mysql_select_db($database, $link); 
    
    $mysql_query=(INSERT INTO Driver_applicants (FirstName, LastName, Applicationdate, Phone, AltPhone, DL, StreetAddress, City, State, Zip) VALUES ('$_POST[APPLICANT_TO_COMPLETE_FirstName]','$_POST[APPLICANT_TO_COMPLETE_LastName]','$_POST[DateofApplication]','$_POST[APPLICANT_TO_COMPLETE_PhoneNumber]','$_POST[APPLICANT_TO_COMPLETE_SecondaryPhone]','$_POST[License1]','$_POST[APPLICANT_TO_COMPLETE_CurrentAddress]','$_POST[APPLICANT_TO_COMPLETE_CurrentCity]','$_POST[APPLICANT_TO_COMPLETE_CurrentState]','$_POST[APPLICANT_TO_COMPLETE_CurrentZip]'); 
    
    if (!mysql_query($mysql_query,$link)) 
      { 
      die('Error: ' . mysql_error()); 
      } 
    
    //now send email to applications@aandstransportation.com
    $to = 'applications@aandstransportation.com';
    $from = $_POST['ApplicantName'];
    // $status = $_POST['Project_status'];
    /* subject */ 
    $subject = "Application For Employment Web Submission"; 
    /* message */ 
    $message = '<html> 
    <head> 
    <title>Application For Employment Web Submission</title> 
    </head> 
    <body> 
    <p>Dear '.$to.',</p> 
    <table>
    <tr> 
    <td colspan="2">"'Employment Application Details:"</td>
    </tr><tr> 
     <td>Applicant Name: </td><td>'.$_POST['ApplicantName'].'</td>  
     </tr>  <tr> 
      <td>Date of Application: </td><td>'.$_POST['DateofApplication'].'</td>
    </tr><tr> 
     <td>Company: </td><td>'.$_POST['Company'].'</td>  
    </tr><tr> 
    <td>Address: </td><td>'.$_POST['Address'].'</td>  
    </tr><tr> 
     <td>Signature: </td><td>'.$_POST['Signature1'].'</td>  
    </tr><tr> 
     <td>Date: </td><td>'.$_POST['Date'].'</td>  
    </tr>
    
    <tr> 
                      <td></h3><strong> FOR COMPANY USE</strong> </h3></td>  
    </tr>
    
    <td> </td>
    <tr> 
     <td>APPLICANT HIRED: </td><td>'.$_POST['APPLICANTHIRED'].'</td>  
    </tr>
    <tr> 
     <td>District: </td><td>'.$_POST['District'].'</td>  
    </tr>
    <tr> 
     <td>DATE EMPLOYED: </td><td>'.$_POST['DATEEMPLOYED'].'</td>  
    </tr>
    <tr> 
     <td>Interviewing Manager: </td><td>'.$_POST['InterviewingManager'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['InterviewingManager_Signature'].'</td>  
    </tr>
    <tr> 
     <td>Human Resources: </td><td>'.$_POST['HumanResources'].'</td>  
    </tr>
    <tr> 
     <td>Signature: </td><td>'.$_POST['HumanResources_Signature'].'</td>  
    </tr>
    <td> </td>
    
    
    <tr> 
                    </h3>  <strong> <td>APPLICANT TO COMPLETE</h3></strong></td>  
    </tr>
    <tr> 
     <td>LastName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_LastName'].'</td>  
    </tr><tr> 
     <td>FirstName: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_FirstName'].'</td>  
    </tr><tr> 
     <td>SSN: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SSN'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Secondary Phone: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_SecondaryPhone'].'</td>  
    </tr><tr> 
     <td>Position(s) applied for: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Position_applied__for'].'</td>  
    </tr><tr> 
     <td>Rate of pay expected: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_Rate_of_pay_expected'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Current<br />
                                Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentAddress'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentCity'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentState'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentZip'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_CurrentHowLong'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td></h3> <strong>Previous Addresses</strong></h3></td>  
    </tr>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip1'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong1'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip2'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong2'].'</td>  
    </tr>
    <td> </td>
    <tr> 
     <td>Address: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousAddress3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousCity3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousState3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousZip3'].'</td>  
    </tr><tr> 
     <td>How Long?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousHowLong3'].'</td>  
    </tr>
    
    
    <td> </td>
    <tr> 
     <td>Do you have the legal right to work in the United States? : </td><td>'.$_POST['Do_you_have_the_legal_right_to_work_in_the_United_States'].'</td>  
    </tr><tr> 
     <td>Date of Birth: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousDate_of_Birth'].'</td>  
    </tr><tr> 
     <td>Can you provide proof of age?: </td><td>'.$_POST['Can_you_provide_proof_of_age'].'</td>  
    </tr><tr> 
     <td>Have you worked for this company before?: </td><td>'.$_POST['Have_you_worked_for_this_company_before'].'</td>  
    </tr><tr> 
     <td>Where?: </td><td>'.$_POST['APPLICANT_TO_COMPLETE_PreviousWhere'].'</td>  
    </tr>
    <tr> 
     <td>Are you currently employed?: </td><td>'.$_POST['Are_you_currently_employed'].'</td>  
    </tr><tr> 
     <td>How were you referred to the company?: </td><td>'.$_POST['How_were_you_referred_to_the_company'].'</td>  
    </tr><tr> 
     <td>If yes, explain if you wish: </td><td>'.$_POST['If_yes_explain_if_you_wish'].'</td>  
    </tr>
    <td> </td>
    <tr> 
                      <td><h3><strong>EMPLOYMENT HISTORY</strong></h3></td>  
    </tr>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    
     <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer1'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom1'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To1'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address1'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City1'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State1'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip1'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson1'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber1'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld1'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage1'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving1'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed1'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing1'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer2'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom2'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To2'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address2'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City2'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State2'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip2'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson2'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber2'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld2'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage2'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving2'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed2'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing2'].'</td>  
     </tr>
    <td> </td>
    
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer3'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom3'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To3'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address3'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City3'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State3'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip3'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson3'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber3'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld3'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage3'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving3'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed3'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing3'].'</td>  
     </tr>
    
    <td> </td>
    <tr> 
     <td>Employer: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employer4'].'</td>  
    </tr><tr> 
     <td>Employed from: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Employedfrom4'].'</td>  
    </tr><tr> 
     <td>To: </td><td>'.$_POST['EMPLOYMENT_HISTORY_To4'].'</td>  
    </tr><tr> 
     <td>Address: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Address4'].'</td>  
    </tr><tr> 
     <td>City: </td><td>'.$_POST['EMPLOYMENT_HISTORY_City4'].'</td>  
    </tr><tr> 
     <td>State: </td><td>'.$_POST['EMPLOYMENT_HISTORY_State4'].'</td>  
    </tr><tr> 
     <td>Zip: </td><td>'.$_POST['EMPLOYMENT_HISTORY_Zip4'].'</td>  
    </tr><tr> 
     <td>Contact Person: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ContactPerson4'].'</td>  
    </tr><tr> 
     <td>Phone Number: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PhoneNumber4'].'</td>  
    </tr><tr> 
     <td>Position Held: </td><td>'.$_POST['EMPLOYMENT_HISTORY_PositionHeld4'].'</td>  
    </tr><tr> 
     <td>Salary/Wage: </td><td>'.$_POST['EMPLOYMENT_HISTORY_SalaryWage4'].'</td>  
    </tr><tr> 
     <td>Reason For Leaving: </td><td>'.$_POST['EMPLOYMENT_HISTORY_ReasonForLeaving4'].'</td>  
    </tr><tr> 
     <td>Were you subject to FMCSRs* (DOT regulations) while employed: </td><td>'.$_POST['Were_you_subject_to_FMCSRs_DOT_regulations_while_employed4'].'</td>  
     </tr><tr> 
     <td>Were you subject to DOT drug & alcohol testing?: </td><td>'.$_POST['Were_you_subject_to_DOT_drug_alcohol_testing'].'</td>  
     </tr>
    
    <td> </td>
    <td><h3><strong>ACCIDENT RECORD</strong> for past 3 years or more (attach sheet if more space is required). If non, write none.</h3></td> 
    <td> </td> 
    <tr> 
     <td>Last Accident: </td><td>'.$_POST['Last_Accident1'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous11'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous12'].'</td>  
    </tr>
    
    <td> </td>
    <td><h3><strong>TRAFFIC CONVICTIONS</strong> and forfeitures for the past 3 years (other than parking violations). If none, write none.</h3></td> 
    <tr> 
     <td>Last Violation: </td><td>'.$_POST['Last_Accident2'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous21'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous22'].'</td>  
    </tr><tr> 
     <td>Next Previous: </td><td>'.$_POST['Next_Previous23'].'</td>  
    </tr>
    
    
    <tr> 
     <td>Have you EVER been convicted of a DUI, DWI and/or DUBAL?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_DUI_DWI_and_or_DUBAL'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted for reckless driving?: </td><td>'.$_POST['Have_you_EVER_been_convicted_for_reckless_driving'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of fleeing or attempting to elude a police officer?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_fleeing_or_attempting_to_elude_a_police_officer'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of leaving the scene of an accident?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_leaving_the_scene_of_an_accident'].'</td>  
    </tr>
    
    <tr> 
     <td>Have you EVER been convicted of a railroad crossing violation?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_a_railroad_crossing_violation'].'</td>  
    </tr><tr> 
     <td>Have you EVER been convicted of passing a school bus while it is unloading or loading?: </td><td>'.$_POST['Have_you_EVER_been_convicted_of_passing_a_school_bus_while_it_is_unloading_or_loading'].'</td>  
    </tr><tr> 
     <td>Has your license EVER been suspended or revoked?: </td><td>'.$_POST['Has_your_license_EVER_been_suspended_or_revoked'].'</td>  
    </tr><tr> 
     <td>If so, please explain:: </td><td>'.$_POST['If_yes_explain_if_you_wish1'].'</td>  
    </tr><tr> 
     <td>Have you ever been convicted of a felony?: </td><td>'.$_POST['Have_you_ever_been_convicted_of_a_felony'].'</td>  
    </tr><tr> 
     <td>If so, please explain: </td><td>'.$_POST['If_yes_explain_if_you_wish2'].'</td>  
    </tr>
    <td> </td>
    
    
    
    <td> <h3>  <strong>EXPERIENCE AND QUALIFICATIONS - DRIVER</strong></h3></td> 
    <td> </td>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State1'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License1'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements1'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration1'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State2'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License2'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements2'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration2'].'</td>  
    </tr>
    
    <tr> 
     <td>State: </td><td>'.$_POST['Listalldriverlicenses_State3'].'</td>  
    </tr><tr> 
     <td>Licence: </td><td>'.$_POST['License3'].'</td>  
    </tr><tr> 
     <td>Class/Endorsements: </td><td>'.$_POST['Class_Endorsements3'].'</td>  
    </tr><tr> 
     <td>Expiration: </td><td>'.$_POST['Expiration3'].'</td>  
    </tr>
    <tr> 
     <td>A. Have you ever been denied a licens, permit or privilege to operate a motor vehicle?: </td><td>'.$_POST['Have_you_ever_been_denied_a_license'].'</td>  
    </tr>
    <tr> 
     <td>Please list any other driving experience (equipment type & approximate dates/miles driven): </td><td>'.$_POST['If_yes_explain_if_you_wish3'].'</td>  
    </tr>
    <tr> 
     <td><strong>Education </strong>listing highest grade completed and any degrees earned </td><td>'.$_POST['listing_highest_grade_completed_and_any_degrees_earned'].'</td>  
    </tr>
    
    <td> </td>
    
     <tr> 
     <td>Signature: </td><td>'.$_POST['Signature'].'</td>  
    </tr>
     <tr> 
     <td>Date: </td><td>'.$_POST['Date1'].'</td>  
    </tr>
    
     <td> </td>
    </tr>
    </table> 
    
    </body> 
    </html>';
    /* To send HTML mail, set the Content-type header. */ 
    $headers  = "MIME-Version: 1.0\r\n"; 
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 
    $headers .= "From: " . $from . "\r\n"; 
    /* and now mail it */ 
    /*echo $message; die;*/
    @mail($to, $subject, $message, $headers);
    
    echo "<h4>Your message has been sent to us with your full application details.<br />
                <span>We will reply soon as soon as possible to follow up with you on our hiring process.  Thank you for considering A&S Transportation, Inc. for employment.</span></h4>";
    
    
    $mysql_close($link); 
    ?>
    
    
    
  22. //now send email to applications@aandstransportation.com

    $to = 'applications@aandstransportation.com';

    $from = $_POST['ApplicantName'];

    // $status = $_POST['Project_status'];

    /* subject */ 

    $subject = "Application For Employment Web Submission"; 

    /* message */ 

    $message = '<html> 

    <head> 

    <title>Application For Employment Web Submission</title> 

    </head> 

    <body> 

    <p>Dear '.$to.',</p> 

    <table>

    <tr> 

    <td colspan="2">"Employment Application Details:"</td>

    </tr><tr> 

     <td>Applicant Name: </td><td>'.$_POST['ApplicantName'].'</td>  

     </tr>  <tr> 

      <td>Date of Application: </td><td>'.$_POST['DateofApplication'].'</td>

    </tr><tr> 

     <td>Company: </td><td>'.$_POST['Company'].'</td>  

    </tr><tr> 

     

     

    Then at the bottom... 

     


    </html>';

    /* To send HTML mail, set the Content-type header. */ 

    $headers  = "MIME-Version: 1.0\r\n"; 

    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; 

    $headers .= "From: " . $from . "\r\n"; 

    /* and now mail it */ 

    /*echo $message; die;*/

    @mail($to, $subject, $message, $headers);

     

    echo "<h4>Your message has been sent to us with your full application details.<br />

                <span>We will reply soon as soon as possible to follow up with you on our hiring process.  Thank you for considering A&S Transportation, Inc. for employment.</span></h4>";

     

     

    $mysql_close($link); 

    ?>

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.