Heim  >  Artikel  >  Backend-Entwicklung  >  PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WH_PHP教程

PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WH_PHP教程

WBOY
WBOYOriginal
2016-07-13 10:54:571230Durchsuche

在程序初始时,遇到错误为:

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代码


公司名称


公司地址


订购产品数量





Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn