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

PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WH

WBOY
Release: 2016-06-13 09:55:28
Original
1215 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']."

";

另外8-22.php代码为:

echo $_GET['company']."你好:

";
echo"感谢贵公司订购本公司的产品".$_GET['amount']."个,";
echo"货款共".($_GET['amount']*100)."元整.

";
echo"产品将于三日内到达$_GET['address']

";
?>

html代码


公司名称


公司地址


订购产品数量





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