Advertisement

10.02.2007 at 04:15AM PDT, ID: 22865976
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.6

mail and unexpected T_STRING, I'm stucked

Asked by thurston_l in PHP Scripting Language

Tags:

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> Start Free Trial
 
Loading Advertisement...
 
[+][-]10.02.2007 at 04:33AM PDT, ID: 19997542

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP Scripting Language
Tags: t_string
Sign Up Now!
Solution Provided By: hernst42
Participating Experts: 1
Solution Grade: A
 
 
[+][-]10.02.2007 at 04:59AM PDT, ID: 19997696

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_1_20070628