Hello,
From trial and error, I have managed to pull data filled out on my website and have it compiled into a nice email. Everything looks good... except when there's no selection made.
See Below: This is the area of concern (in red)
You have received a new quote from Support Team located in North Carolina.
The preferred method of contact is Email.
The purpose of the contact: Get a Quote.
The type of insurance that the request is for:
Commercial Insurance: Business Liability
Personal Insurance: Comprehensive Personal Liability
When a category does not have a selection, this is the output:
You have received a new quote from Support Team located in North Carolina.
The preferred method of contact is Email.
The purpose of the contact: Get a Quote.
The type of insurance that the request is for:
Commercial Insurance:
Warning: implode() [function.implode]: Bad arguments. in /homepages/31/d237632830/htdocs/wsb4851896901/components/com_chronocontact/chronocontact.php(350) : eval()'d code on line 8
Personal Insurance: Condo/Renters, Watercraft
This is the coding that I am using in my email template:
You have received a new quote from <b><?php echo $POST["name"]; ?></b> located in <b><?php echo $POST["state"]; ?></b>.<br /><br />
The preferred method of contact is <b> <?php echo $POST["contact"]; ?></b>. <br />
<br />
The purpose of the contact: <b><?php echo $POST["field-116839a98fa58fc"]; ?></b>. <br />
<br />
The type of insurance that the request is for: <br /><br />
Commercial Insurance: <b> <?php echo $POST['commercial_insurance'] = implode(', ', $POST['commercial_insurance']); ?></b><br /><br />
Personal Insurance: <b><?php echo $POST['personal_insurance'] = implode(', ', $POST['personal_insurance']); ?></b><br /><br />
Check under <a href="http://mysite.com/administrator/index2.php?option=com_jcontacts&task=listLeads">New Leads</a> for additional contact information
What coding do I need to add to leave the selection area blank or state "none selected", if no choice is made in that category?
Thanks in advance for your assistance!