Forum Moderators: coopster
For example my form has many rows each with a quantity field...in the email I get, I want the results to be written each on a new line but only if the field had a value:
Item 1 Quantity=34
Item 4 Quantity=7
Item 9 Quanity=2
I am writing my email like this in the PHP file:
$message=
"$item1 $quantity1
$item2 $quantity2
$item3 $quantity3
$item4 $quantity4
$item5 $quantity5
etc" .
If I use a <BR> after each line it puts a break wehter there is data for $item/$quantty or not....thought the line is blank - how can I say if $item5!= nothing then add a <BR>
or is there anohther way?