这是错误消息:
解析错误:语法错误,意外';'在第155行的/home1/goldensu/public_html/camira/contactForm.php
这是代码:
$sendMessage = "Someone is interested in becoming a reseller or installer.<br /><br /><br />
<b><u>Country</u>:</b> "
.stripslashes($country)."<br /><br />\n
<b><u>Company Name</u>:</b> "
.stripslashes($companyName)."<br /><br />\n
<b><u>Office Address</u>:</b> "
.stripslashes($officeAddress)."<br /><br />\n
<b><u>Company Phone</u>:</b> "
.stripslashes($companyPhone)."<br /><br />\n
<b><u>Company Email</u>:</b> "
.stripslashes($companyEmail)."<br /><br />\n
<b><u>Web page</u>:</b> "
.stripslashes($webPage."<br /><br />\n
<b><u>Number of emplyees</u>:</b> "
.stripslashes($numberEmployees)."<br /><br />\n
<b><u>Yearly turnover</u>:</b> "
.stripslashes($turnover)."<br /><br />\n
<b><u>Marketing Activities</u>:</b> "
.stripslashes($marketingActivities)."<br /><br />\n
<b><u>Annual marketing budget</u>:</b> "
.stripslashes($marketingBudget)."<br /><br />\n
<b><u>Current renewable energy products</u>:</b> "
.stripslashes($energyProducts)."<br /><br />\n
<b><u>Length of agreements</u>:</b> "
.stripslashes($agreements)."<br /><br />\n
<b><u>Territories</u>:</b> "
.stripslashes($territories)."<br /><br />\n
<b><u>Staff Qualifications</u>:</b> "
.stripslashes($staffQualifications)."<br /><br />\n";
最后抱怨分号。这有点蠢吗?
答案 0 :(得分:4)
问题出在这里:
.stripslashes($webPage."<br /><br />\n
看来你错过了一个结束括号):
.stripslashes($webPage)."<br /><br />\n
答案 1 :(得分:1)
在这种情况下,它很可能是以前表达式中缺少的副词。
看来这个:
.stripslashes($webPage."<br /><br />\n
<b><u>Number of emplyees</u>:</b> "
(应用magic_quotes解决方法centrally可以避免的错误。)
答案 2 :(得分:0)
刚看到错过的收盘......傻傻的我!
.stripslashes($webPage."<br /><br />\n