在程序初始时,遇到错误为: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['company']."你好:<p>"; echo"感谢贵公司订购本公司的产品".$_GET['amount']."个,"; echo"货款共".($_GET['amount']*100)."元整.<p>"; echo"产品将于三日内到达$_GET['address']<p>";
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号