Home > php教程 > php手册 > PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE

PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE

WBOY
Release: 2016-05-25 16:53:06
Original
1747 people have browsed it

在程序初始时,遇到错误为:PHP Parse error:  syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/developer/pp1/8-22.php on line 5, referer: http://localhost/developer/pp1/form_input.html

在网上检查了一下,说是语法错误,检查了一下语法,发现8-22.php组后一行的echo语句有错误,应改为:echo"产品将于三日内到达".$_GET['address']."

";注意 $_GET['address'] 两边的圆点。

另外8-22.php错误代码为:

<?php 
echo $_GET[&#39;company&#39;]."你好:<p>"; 
echo"感谢贵公司订购本公司的产品".$_GET[&#39;amount&#39;]."个,"; 
echo"货款共".($_GET[&#39;amount&#39;]*100)."元整.<p>"; 
echo"产品将于三日内到达$_GET[&#39;address&#39;]<p>";
Copy after login

               
               

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template