Jump to content

TinaOConnell

Members
  • Posts

    30
  • Joined

  • Last visited

Everything posted by TinaOConnell

  1. The error it show when it runs is just syntax errors.. the line numbers.. can not paste on here.. so I just made those lines bold that have the issues.. it is only those few lines in bold that have syntax errors.. I am sure it is something simple like typo or something.. It is just that it worked fine before I added the connect script and now NO WORKY
  2. Well that actually did not work.. now I have three lines showing syntax errors.. Crap.. I really do not enjoy coding.. too detailed for a creative gal like me.. I am better a design, much better.. OK here is the whole code. In bold are the lines with the syntax errors.. //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, you can 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 your employment.</span></h4>"; $mysql_close($link); ?>
  3. Thanks so much.. so new at this.. years of modeling and simulation and graphic design and animation in this crappy market have led me to a PHP/MySQL developer job.. OMG do I have a TON to learn .. well thanks bunches!! Any suggestions on the editor? I hate that dreamweaver offers no real validation help. Thanks again, Tina
  4. BTW.. if I remove the extra " in front of the second line.. 5 more lines show syntax errors.. and I triple checked the field names.. they are in there. I made no changes to this part of the code.. only a simply database mysql connect script at the top and a mysql insert function.
  5. I have a database on one shared hosting plan and a form on the other.. that form was originally set to just email the details when filled out.. and worked perfectly until yesterday.. when I added some script at the top.. the script at the top was to connect to our database and then also automatically import some of the fields from the form. Now that that part is working the form has two lines showing "syntax error" They look right to me and I think I just need a set of eyes other than mine on these two lines to figure it out.. Here is a group of the code.. The two lines in BOLD are the ones with syntax errors per dream weaver.. HELP PLEASE!! . //now send email to apps@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>
×
×
  • 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.