Page 1 of 1

Adding vars in PHP

Posted: Tue Oct 15, 2002 3:19 pm
by mettlehead
Hi, I seemed to work out all my problems so far but one. I have 3 variable that I want to add together when I send my email I tried this :

Total amount of order : $tot1+$tot2+$tot3

but the email just prints out "$tot1+$tot2+$tot3". How come I can't access the values in them?

Posted: Tue Oct 15, 2002 3:42 pm
by volka

Code: Select all

$totalamount = $tot1+$tot2+$tot3;
only $text = '$tot1+$tot2+$tot3';would result in your output.