How do I include and "if" statement into an email $message.
Example
<?php
$order01 = $_POST["order01"];
$order02 = $_POST["order02"];
$order03 = $_POST["order03"];
if ( $order01 > 0 ) {
echo " amount of $order01 <br />";
}
if ( $order02 > 0 ) {
echo " amount of $order02 <br />";
}
if ( $order03 > 0 ) {
echo " amount of $order03 <br />";
}
?>
All I'm trying to do is make sure that anyone that orders only receives the information that was selected not unneeded 0's or extra echo commands that print nothing as in
"amount of 0", or "amount of "nothing".
I'm new to this but I thought this would be simple. Including an if state from those above into the $message of an email.