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_na
me'];
$info_invoice=$_POST['info
_invoice']
;
$info_interview_deadline=$
_POST['inf
o_intervie
w_deadline
'];
$info_type_interview=$_POS
T['info_ty
pe_intervi
ew'];
$info_interview_interview=
$_POST['in
fo_intervi
ew_intervi
ew'];
$interview_other=$_POST['i
nterview_o
ther'];
$info_interview_location=$
_POST['inf
o_intervie
w_location
'];
$info_interview_method=$_P
OST['info_
interview_
method'];
$detail_projectname=$_POST
['detail_p
rojectname
'];
$detail_overview=$_POST['d
etail_over
view'];
$detail_startdate=$_POST['
detail_sta
rtdate'];
$detail_flights=$_POST['de
tail_fligh
ts'];
$detail_accomodation=$_POS
T['detail_
accomodati
on'];
$detail_accomodation_paid=
$_POST['de
tail_accom
odation_pa
id'];
$employment_contractor=$_P
OST['emplo
yment_cont
ractor'];
$employment=$_POST['employ
ment'];
$employment_wage=$_POST['e
mployment_
wage'];
$scontract_type=$_POST['co
ntract_typ
e'];
$contract_limited_length=$
_POST['con
tract_limi
ted_length
'];
$contract_unlimited_startd
ate=$_POST
['contract
_unlimited
_startdate
'];
$contract_equipmn=$_POST['
contract_e
quipmn'];
$skills_essential=$_POST['
skills_ess
ential'];
$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_ot
herlang1']
;
$level_o1=$_POST['level_o1
'];
$skills_otherlang2=$_POST[
'skills_ot
herlang2']
;
$level_o2=$_POST['level_o2
'];
$skills_mcp=$_POST['skills
_mcp'];
$skills_msca=$_POST['skill
s_msca'];
$skills_mcsd=$_POST['skill
s_mcsd'];
$skills_mcse=$_POST['skill
s_mcse'];
$skills_mssql_dba=$_POST['
skills_mss
ql_dba'];
$skills_ccna=$_POST['skill
s_ccna'];
$skills_ccnp=$_POST['skill
s_ccnp'];
$skills_ccie=$_POST['skill
s_ccie'];
$skills_oracle_opc=$_POST[
'skills_or
acle_opc']
;
$skills_certification_othe
r=$_POST['
skills_cer
tification
_other'];
$skills_degree_radio=$_POS
T['skills_
degree_rad
io'];
$skills_degree_spec=$_POST
['skills_d
egree_spec
'];
$skills_exp_radio=$_POST['
skills_exp
_radio'];
$skills_project_otherdetai
ls=$_POST[
'skills_pr
oject_othe
rdetails']
;
$mailContent="--------GENE
RAL 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----
----INTERV
IEW DETAILS--------\n"
."Interview type: ".$info_type_interview."\n
"
."Interviewer: ".$info_interview_intervie
w." - ".$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_pai
d."\n\n---
-----EMPLO
YMENT 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_star
tdate."\n"
."Equipment supplied by: ".$contract_equipmn."\n\n-
-------SKI
LLS ESSENTIAL--------\n"
."Job title: ".$skills_essential."\n\n-
-------LAN
GUAGE 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------
--CERTIFIC
ATE/EXPERI
ENCE 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_ot
her."\n"
."Degree needed?: ".$skills_degree_radio." ".$skills_degree_spec."\n"
."Experience of resource needed?: ".$skills_exp_radio."\n"
."Other details: ".$skills_project_otherdet
ails."\n"
//------------------------
----------
mail("me@mail.com", "New request", "asd", "Reply-To: <me@mail.com>\nSender: me"); ?>
<?php echo"Mail sent."; ?>
</body>
</html>
Start Free Trial