Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.