Page 1 of 1

Form to email help

Posted: Mon Feb 14, 2011 4:15 pm
by iprint
Hi,
I need help with form that sends info to 2 different email addresses depending what location is selected on the form.
Form and php file attached.

Re: Form to email help

Posted: Tue Feb 15, 2011 7:45 am
by pburgh
Why not use a dropdown for the two locations and then set the TO field in the email to that value on POST/GET?

Or, on POST, something clumsy like

Code: Select all

if($_POST['location'] = 1) {
      $to = "email@email.com";
}
else {
      $to = "email2@email.com";
}

Re: Form to email help

Posted: Tue Feb 15, 2011 8:30 am
by ganesh_dabhade
Yes, this is better solution if u want to send msg to one address.