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="c/https://www.daniweb.com/programming/web-development/threads/341056/hecked.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="i/https://www.daniweb.com/programming/web-development/threads/341056/mages/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!