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! 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="[email protected]">Option 1</option> </select> PHP-Code <?php mail($_POST['opt'], 'Option', 'Content'); ?> 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. 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" Link to comment https://forums.phpfreaks.com/topic/70593-solved-multiple-email-problem/#findComment-354780 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.