Greetings everyone.
i have a number of check box's, a message text area and a submit button. Depending on what box is checked it will send the message to that email address.
Here is the code for the form:
<form method="POST" name="myform" action="checked.php">
<input type="checkbox" name="emails[]" value="user1@domain.com" />
<input type="checkbox" name="emails[]" value="user2@domain.com" />
<input type="checkbox" name="emails[]" value="user3@domain.com" />
<textarea></textarea>
<input type="image" src="images/submit.jpg" alt="Submit button">
</form>
i would like to know now, how i would go about writing the php code for this in the simplest way, maybe not using a load of if statements? because i am going to be having about a dozen check box's each holding a different email address.
Many thanks!