Menu
I have a form and I’m trying to email some of the form fields, but I only want to include them in the email body if their value is greater than 0
For example, if there’s no phone extension, I dont want it included as an empty value in the email. Exactly where & how do I perform the test of the values before they get included into the email body ?
My mail is structured like
[code=php]
$message = ” $todayis [PST] n
Customer $first_namen
$phone_number . EXT $phone_extensionn
$messageme = ” $message n
$from = “From:$fromEmailrn”;
mail($myemail, $subject, $messageme, $from);
Thanks