I've been trying to figure this out for several days and cannot! I have searched and tried different codes, some javascript, some php, etc. I like the one I am using, I just need to figure out WHAT line of code to put in my PHP file.
Contact form has 4 fields. Upon submit, the form is emailed to me. While testing it, I receive the email with only 3 of the fields... The one I am not receiving is "users choice selected from dropdown box".
I found another thread almost identical to mine (on this site) and I tried what was suggested, but it did not work for me, and I don't know why. Here is the link to the thread by another user: PHP: Request the values of a HTML form drop down list
HTML
<select size="1" name="drop_down">
<option value="Shows">Shows</option>
<option value="Education">Education</option>
<option value="Coaching">Coaching</option>
<option value="Regional Convention Assistance">Regional Convention Assistance</option>
<option value="Quartet Workshop: Vivapalooza!">Quartet Workshop: Vivapalooza!</option>
<option value="Other">Other</option>
</select>
PHP
<?php
if ($_POST["email"]<>'') {
$ToEmail = 'yecartdotcom@yahoo.com';
$EmailSubject = 'Viva! Contact Form ';
$mailheader = "From: ".$_POST["email"]."
";
$mailheader .= "Reply-To: ".$_POST["email"]."
";
$mailheader .= "Content-type: text/html; charset=iso-8859-1
";
$MESSAGE_BODY = "Name: ".$_POST["name"]."<br>";
$MESSAGE_BODY .= "Email: ".$_POST["email"]."<br>";
$MESSAGE_BODY .= "Message: ".nl2br($_POST["message"])."<br>";
mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure");
?>