Let me explain what I am trying to achieve here. I am doing a site for a real estate company which has a PHP form. I have it setup where you type in your name email, and a message. I also have a drop down menu of choices to pick from. Each category needs to be sent to a different persons email, and all of the messages need to go to the boss. Here is what I have so far.
<?php
$destination=$_POST['emailCategory'];
$name=$_POST['name'];
$emailCategory=$_POST['emailCategory'];
$email=$_POST['email'];
$from ="Website Inquiry";
$phone=$_POST['phone'];
$mes=$_POST['mes'];
$header="From: $name";
$newMes="Name: $name\n
Category: $category\n
Email: $email\n
Phone: $phone\n
Message: $mes\n";
mail($destination,$from,$newMes,"From: Website Inquiry");
mail("test@mac.com",$from,$newMes,"From: Website Inquiry");
header( 'Location: test.html' );
?>
The html looks like this....
Name:
Category
...Select a Category
Vacation Rentals
Yearly Rentals
Property Management
Work Order Request
Other
Email:
Phone:
Message:
Any Help would be greatly appreciated