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>