Email Results of data collected

I have a site that has a form that collects data – The data then is sent to a page see here http://www.a2zlogistix.com/index.php?option=com_chronoconnectivity&Itemid=11

If you look you can see check boxes next to each line item and a submit button at the bottom I would like the data in the line items to be sent to an people via email if I check some or all the boxes is there a way to do this. The data is saved into a database

I believe there need to be field for email address to send user selection to? As for php code, here is a quick example of how to implement this:
[php]<?php
if($_POST[‘email’]){
$mess=’’;
foreach($_POST[‘email’] as $key=>$val){
$mess.=($mess==’’?’’:’, ').$key;
}
mail($to_email,‘User selected checkboxes:’,$mess);
}
?>[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service