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-email
s -
$emails = array('first' => 'first@region.com', 'second' => 'second@region.com', 'third' => 'third@region.com');
get email -
$email = $email[$_post['region']];
add checks need.
Comments
Post a Comment