PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE

Source: Internet
Author: User
Tags parse error php tutorial

When the program is started, the following error occurs:

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 tutorial 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 of the row after the 8-22.php group is incorrect. Change it:

Echo "the product will arrive within three days". $ _ GET ['address']. "<p> ";

In addition, the code 8-22.php is:

<? 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 ";
?>

Html code

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

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.