Jump to content

[SOLVED] T_ENCAPSED_AND_WHITESPACE


jakebur01

Recommended Posts

I am setting the body for my mail script. But, I get this error:

PHP Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING

 

$message = "Hello $name, this e-mail is to confirm that we have received your order. Your order number is $ordernumber . <br /> display_cart($_SESSION['cart'], false, 0) <br />   display_shipping(calculate_shipping_cost()) <br /> We will process your credit card soon, if approved we will proceed with your order. You will receive an e-mail when your card is processed. <br />Thank you, <br />Me <br /> http://mysite.com";

 

How should this be?

Link to comment
https://forums.phpfreaks.com/topic/63839-solved-t_encapsed_and_whitespace/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.