I am using the send record mod and I am sending the following data, but I would like to exclude fields that are blank and not have a blank line (sub html_forward_email_form). Are their if statements and how would I make one? If 'Telephone2' field has no data entered, how do I get it to not print the label, Tele2: and not leave a blank line.
$rec{'First Name'} $rec{'Last Name'}
$rec{'Degrees/Certifications/Modalities'}
$rec{'City'}, $rec{'State'} $rec{'Zip Code'}
$rec{'Country'}
Tele: $rec{'Telephone'}
Tele2:$rec{'Telephone2'}
Fax: $rec{'Fax'}
mailto:$rec{'E-mail'}
$rec{'Web Address'}
$rec{'Comments/Business'}
|;
}
}
&html_print_headers;
Thanks,
Tommy Gardner
$rec{'First Name'} $rec{'Last Name'}
$rec{'Degrees/Certifications/Modalities'}
$rec{'City'}, $rec{'State'} $rec{'Zip Code'}
$rec{'Country'}
Tele: $rec{'Telephone'}
Tele2:$rec{'Telephone2'}
Fax: $rec{'Fax'}
mailto:$rec{'E-mail'}
$rec{'Web Address'}
$rec{'Comments/Business'}
|;
}
}
&html_print_headers;
Thanks,
Tommy Gardner