PHP Parse error: syntax error, unexpected t_encapsed_and_whitespace, expecting t_string or t_variab

Source: Internet
Author: User
Tags parse error php source code

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.