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.
Form to email help
Moderator: General Moderators
Form to email help
- Attachments
-
- registration.zip
- (5.66 KiB) Downloaded 64 times
Re: Form to email help
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
Or, on POST, something clumsy like
Code: Select all
if($_POST['location'] = 1) {
$to = "email@email.com";
}
else {
$to = "email2@email.com";
}
- ganesh_dabhade
- Forum Newbie
- Posts: 19
- Joined: Sun Feb 06, 2011 12:42 am
- Contact:
Re: Form to email help
Yes, this is better solution if u want to send msg to one address.