Introduction: This is a detailed page of PHP Parse error: syntax error, unexpected t_encapsed_and_whitespace, expecting t_string or t_variable or t_num_string. It introduces PHP and related knowledge, skills, and experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 339158 'rolling = 'no'>
I wrote a simple HTML file and called the PHP file using got. The following error occurs:
<HTML>
<Head> <title> form input </title> <Body>
<Center> Customer Information </center> <p> <HR> <p>
<Form action = "8-22.php" method = "get">
Company Name <input type = text name = company size = 20> <p>
Company address <input type = text name = address size = 20> <p>
Quantity of purchased products <input type = text name = Amount size = 5> <p>
<Input type = submit value = "filled"> <p>
<Input type = reset value = "">
</Form>
</Body>
</Html>
In addition, 8-22.phpCodeIs:
<? PHP
Echo $ _ Get ['company']. "Hello, <p> ";
Echo "thanks to your company for subscribing to our products". $ _ Get ['amount ,";
Echo "total payment". ($ _ Get ['amount'] * 100). "RMB. <p> ";
Echo "the product will arrive at $ _ Get ['address'] <p>" within three days ";
?>
InProgramThe initial error is:
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: Check the syntax on the Internet. Check the syntax and find that the echo statement in the row after the 8-22.php group is incorrect, should be changed:
Echo "the product will arrive within three days". $ _ Get ['address']. "<p> ";
Solve the problem.
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/339158.html pageno: 8.