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 - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -