Thyestean Posted September 25, 2007 Share Posted September 25, 2007 I have a form that has a select menu with different options on it, each option has to be sent to a different email address when selected. How would I go about doing this in PHP. I'm relatively knew to the whole php thing, so gimme a break! Quote Link to comment https://forums.phpfreaks.com/topic/70593-solved-multiple-email-problem/ Share on other sites More sharing options...
Lumio Posted September 25, 2007 Share Posted September 25, 2007 Code with the options: <select name="opt"> <option value="mail@mail.com">Option 1</option> </select> PHP-Code <?php mail($_POST['opt'], 'Option', 'Content'); ?> Quote Link to comment https://forums.phpfreaks.com/topic/70593-solved-multiple-email-problem/#findComment-354732 Share on other sites More sharing options...
Thyestean Posted September 25, 2007 Author Share Posted September 25, 2007 Awesome, thanks a lot dude. Quote Link to comment https://forums.phpfreaks.com/topic/70593-solved-multiple-email-problem/#findComment-354735 Share on other sites More sharing options...
Lumio Posted September 25, 2007 Share Posted September 25, 2007 You're welcome Please click on "Topic Solved" Quote Link to comment https://forums.phpfreaks.com/topic/70593-solved-multiple-email-problem/#findComment-354780 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.