Page 1 of 1

[SOLVED] adding to $msg??

Posted: Wed Apr 13, 2005 7:34 pm
by C_Calav
hi guys,

im having some trouble with writing the $msg and adding to it in a mail().

this is what i have:

Code: Select all

$msg = "Order for:\n\n
        Order#: $O_Id \n
        Name: $O_Name \n
        Email: $O_Email \n
        Phone: $O_Phone \n
        Address 1: $O_Address1 \n
        Address 2: $O_Address2 \n
        City: $O_City \n
        Freight: $O_Freight \n";

Code: Select all

$msg. ="ItemID: $itemId \n
        qty: $qty";
now i want to add to the $msg and i looked around and saw alot of people doing this.

but i get
Parse error: parse error, unexpected '='
i do not know what i am doing wrong?

also, i can not search this site at work, it does not work for me. sorry if it has been answered previously

Posted: Wed Apr 13, 2005 8:04 pm
by John Cartwright
try

Code: Select all

$msg .= "ItemID: $itemId \n        
qty: $qty";

Posted: Wed Apr 13, 2005 8:11 pm
by C_Calav
thanx man that did it