[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

mail and unexpected T_STRING, I'm stucked

Posted on 2007-10-02
2
Medium Priority
?
234 Views
Last Modified: 2008-01-09
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>
0
Comment
Question by:thurston_l
2 Comments
 
LVL 48

Accepted Solution

by:
hernst42 earned 1000 total points
ID: 19997542
There is missing a ; at the end of line:

."Other details: ".$skills_project_otherdetails."\n";
0
 
LVL 1

Author Comment

by:thurston_l
ID: 19997696
omg, I must be blind...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month17 days, 17 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question