jakebur01 Posted August 8, 2007 Share Posted August 8, 2007 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 More sharing options...
teng84 Posted August 8, 2007 Share Posted August 8, 2007 the session $_SESSION['cart'] should be sorounded with {}{$_SESSION['cart']} or ".$_SESSION['cart']." Link to comment https://forums.phpfreaks.com/topic/63839-solved-t_encapsed_and_whitespace/#findComment-318177 Share on other sites More sharing options...
jakebur01 Posted August 8, 2007 Author Share Posted August 8, 2007 Thank you! Link to comment https://forums.phpfreaks.com/topic/63839-solved-t_encapsed_and_whitespace/#findComment-318178 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.