Simple Checkbox sending an email upon check.
-
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!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Simple Checkbox sending an email upon check.’ is closed to new replies.