html - PHP different email submission id for different region -


i using html form php mail function embedded. have 3 region in form dropdown. if selects first region form submission should go 1 mail id, if selects second region should go different email id. please tell me how code in php single form.

thanks in advance.

define array region-emails -

$emails = array('first' => 'first@region.com', 'second' => 'second@region.com', 'third' => 'third@region.com'); 

get email -

$email = $email[$_post['region']]; 

add checks need.


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -