<select size="1" name="recipient"> <option>Please Select Recipient</option> <option value="$name1">First Person's Name</option> <option value="$name2">Second Person's Name</option> </select>
And then declare the variable in the processing script this way:
$recipient = $_REQUEST['recipient']; $name = $_REQUEST['name']; $address = $_REQUEST['address']; $city = $_REQUEST['city']; $state = $_REQUEST['state']; $country = $_REQUEST['country']; $email = $_REQUEST['email']; $question = $_REQUEST['question']; $name1 = "email@example.com"; $name2 = "firstname.lastname@example.org"; mail ( "$recipient", "Subject", "Name: $name\n Address: $address\n City: $city\n State: $state\n Country: $country\n Question:$question\n", "From: $email" ); echo '<meta http-equiv=Refresh content=1;url="http://www.url.com/thankyou.php">'; ?>
But that didn't work...it left the $recipient variable blank. Where am I off in my logic for this to work? Thanks in advance for the help.