Link to home
Start Free TrialLog in
Avatar of thurston_l
thurston_lFlag for Hungary

asked on

mail and unexpected T_STRING, I'm stucked

Hi, probably this one's going to be an easy one, but I'm somewhat of a php noob, so, I'm stuck with debugging. (probably it's not helping, I'm using plain notepad)
I'm building a form, and it just quits with an unexpexted T_STRING error message.

the code goes like this:

<html>
<head>
</head>
<body>

<?php
$info_name=$_POST['info_name'];
$info_invoice=$_POST['info_invoice'];
$info_interview_deadline=$_POST['info_interview_deadline'];
$info_type_interview=$_POST['info_type_interview'];
$info_interview_interview=$_POST['info_interview_interview'];
$interview_other=$_POST['interview_other'];
$info_interview_location=$_POST['info_interview_location'];
$info_interview_method=$_POST['info_interview_method'];
$detail_projectname=$_POST['detail_projectname'];
$detail_overview=$_POST['detail_overview'];
$detail_startdate=$_POST['detail_startdate'];
$detail_flights=$_POST['detail_flights'];
$detail_accomodation=$_POST['detail_accomodation'];
$detail_accomodation_paid=$_POST['detail_accomodation_paid'];
$employment_contractor=$_POST['employment_contractor'];
$employment=$_POST['employment'];
$employment_wage=$_POST['employment_wage'];
$scontract_type=$_POST['contract_type'];
$contract_limited_length=$_POST['contract_limited_length'];
$contract_unlimited_startdate=$_POST['contract_unlimited_startdate'];
$contract_equipmn=$_POST['contract_equipmn'];
$skills_essential=$_POST['skills_essential'];
$skill_en=$_POST['skill_en'];
$level_en=$_POST['level_en'];
$skill_ge=$_POST['skill_ge'];
$level_ge=$_POST['level_ge'];
$skill_fr=$_POST['skill_fr'];
$level_fr=$_POST['level_fr'];
$skills_otherlang1=$_POST['skills_otherlang1'];
$level_o1=$_POST['level_o1'];
$skills_otherlang2=$_POST['skills_otherlang2'];
$level_o2=$_POST['level_o2'];
$skills_mcp=$_POST['skills_mcp'];
$skills_msca=$_POST['skills_msca'];
$skills_mcsd=$_POST['skills_mcsd'];
$skills_mcse=$_POST['skills_mcse'];
$skills_mssql_dba=$_POST['skills_mssql_dba'];
$skills_ccna=$_POST['skills_ccna'];
$skills_ccnp=$_POST['skills_ccnp'];
$skills_ccie=$_POST['skills_ccie'];
$skills_oracle_opc=$_POST['skills_oracle_opc'];
$skills_certification_other=$_POST['skills_certification_other'];
$skills_degree_radio=$_POST['skills_degree_radio'];
$skills_degree_spec=$_POST['skills_degree_spec'];
$skills_exp_radio=$_POST['skills_exp_radio'];
$skills_project_otherdetails=$_POST['skills_project_otherdetails'];


$mailContent="--------GENERAL INFO--------\n"
            ."Person/company requesting resource: ".$info_name."\n"
            ."Person/company to be invoiced: ".$info_invoice."\n"
            ."Deadline to send CVs: ".$info_cv_deadline."\n"
            ."Deadline to arrange interview: ".$info_interview_deadline."\n\n--------INTERVIEW DETAILS--------\n"
            ."Interview type: ".$info_type_interview."\n"
            ."Interviewer: ".$info_interview_interview." - ".$interview_other."\n"
            ."Interview location: ".$info_interview_location."\n"
            ."Interview method: ".$info_interview_method."\n\n--------PROJECT DETAILS--------\n"
            ."Project name: ".$detail_projectname."\n"
            ."Project overview: ".$detail_overview."\n"
            ."Start date of the project: ".$detail_startdate."\n"
            ."Are flights needed?: ".$detail_flights."\n"
            ."Is accomodation needed?: ".$detail_accomodation."\n"
                  ."Accomodation is paid by: ".$detail_accomodation_paid."\n\n--------EMPLOYMENT INFORMATION--------\n"
                  ."Resource employed as contractor: ".$employment_contractor." EUR/day\n"
                  ."Employed as: ".$employment."\n"
                  ."With a wage of: ".$employment_wage."\n"
                  ."Contract type: ".$contract_type."\n"
                  ."If limited length, end date: ".$contract_limited_length."\n"
                  ."If unlimited length, start date: ".$contract_unlimited_startdate."\n"
                  ."Equipment supplied by: ".$contract_equipmn."\n\n--------SKILLS ESSENTIAL--------\n"
                  ."Job title: ".$skills_essential."\n\n--------LANGUAGE KNOWLEDGE--------\n"
                  ."English knowledge: ".$skill_en." - (".$level_en."),\n"
                  ."German knowledge: ".$skill_ge." - (".$level_ge."),\n"
                  ."French knowledge: ".$skill_fr." - (".$level_fr."),\n"
                  ."Other language knowledge 1: ".$skills_otherlang1." - (".$level_o1."),\n"
                  ."Other language knowledge 2: ".$skills_otherlang2." - (".$level_o2."),\n\n--------CERTIFICATE/EXPERIENCE REQUIREMENTS--------\n"
                  ."Certificates required: ".$skills_mcp." ".$skills_msca." ".$skills_mcsd." ".$skills_mcse." ".$skills_mssql_dba." ".$skills_ccna." ".$skills_ccnp." ".$skills_ccie." ".$skills_oracle_opc." ".$skills_certification_other."\n"
                  ."Degree needed?: ".$skills_degree_radio." ".$skills_degree_spec."\n"
                  ."Experience of resource needed?: ".$skills_exp_radio."\n"
            ."Other details: ".$skills_project_otherdetails."\n"
//----------------------------------


mail("me@mail.com", "New request", "asd", "Reply-To: <me@mail.com>\nSender: me"); ?>
<?php echo"Mail sent."; ?>
</body>
</html>
ASKER CERTIFIED SOLUTION
Avatar of hernst42
hernst42
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thurston_l

ASKER

omg, I must be blind...