[SOLVED] adding to $msg??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
C_Calav
Forum Contributor
Posts: 395
Joined: Wed Jun 02, 2004 10:55 pm
Location: New Zealand

[SOLVED] adding to $msg??

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

try

Code: Select all

$msg .= "ItemID: $itemId \n        
qty: $qty";
User avatar
C_Calav
Forum Contributor
Posts: 395
Joined: Wed Jun 02, 2004 10:55 pm
Location: New Zealand

Post by C_Calav »

thanx man that did it
Post Reply