The following script works and successfully sends an email and I receive the thank you echo, however the gender section of the form is not showing in the email that I receive.
Any help on what I am doing wrong as I would like to add more form fields such as a drop down menu
[php]
<?php //if "email" variable is filled out, send email if (isset($_REQUEST['email'])) {//Email information
$admin_email = "[email protected]";
$email = $_REQUEST[‘email’];
$subject = $_REQUEST[‘subject’];
$comment = $_REQUEST[‘comment’];
$gender = $_REQUEST[‘gender’];
//send email
mail($admin_email, “$subject”, $comment, “From:” . $email);
//Email response
echo “Thank you for contacting us!”;
}
//if “email” variable is not filled out, display the form
else {
?>
Subject:
Message:
Gender: Female Male
<input type="submit" value="Submit" />
<?php
}
?>
[/php]