I'm trying to make it possible to have a dynamic checkbox list of email addresses to send a report to, and I can create the list with the code below. I can send an email to one person if that box is checked, but my problem is that I can't figure out an effective way to send an email to multiple people if multiple boxes are checked. Any suggestions?
<? while ($row = mysql_fetch_array($results))
{ ?>
<input type="checkbox" name="email" value="<? echo stripslashes($row['email']);?>">
<? echo stripslashes($row['firstname']); echo " "; echo stripslashes($row['lastname']);?>
<br>
<? } ?>