Add drop down menu to contact form?

Hello,
I’m trying to add a simple drop down menu to my form. I need to add Male/Female and Small - XXL. It only has to send the email not verify or anything. Any help is much appreciated!
Here is the current code.

HTML:
[php]

RSVP FOR


Full Name:

Email Address:

Confirm Email:

Invitation Code:


        

[/php]

PHP:
[php]<?php

// first clean up the input values
foreach($_POST as $key => $value) {
if(ini_get(‘magic_quotes_gpc’))
$_POST[$key] = stripslashes($_POST[$key]);

$_POST[$key] = htmlspecialchars(strip_tags($_POST[$key]));
}

$ip=$_SERVER[‘REMOTE_ADDR’];
$email_to = “[email protected]”;
$email_subject = “”;

$email_message .= “Name Entered: “.$_POST[“name”].”\n”;

$email_message .= “Email: “.$_POST[“email”].”\n”;

$email_message .= “Confirm Email: “.$_POST[“cemail”].”\n”;

$userEmail = filter_var( $_POST[‘cemail’],FILTER_VALIDATE_EMAIL );

$email_message .= “Invitation Code: “.$_POST[“invite”].”\n”;

//email headers

$headers = 'From: '.$_POST[“email”]."\r\n".

'Reply-To: '.$_POST[“email”]."\r\n" .

‘X-Mailer: PHP/’ . phpversion();

echo (mail($email_to, $email_subject, $email_message, $headers) ? “”:"");

$ip=$_SERVER[‘REMOTE_ADDR’];
$email_to = $_POST[“email”];
$email_subject = "RSVP | ";

$email_message1 = "Thank you you have RSVP’d for Event!

";

//email headers

$headers = 'From: '.$_POST[“email”]."\r\n".

'Reply-To: '.$_POST[“email”]."\r\n" .

‘X-Mailer: PHP/’ . phpversion();

echo (mail($email_to, $email_subject, $email_message1, $headers) ? “”:"");

// Required field names
$required = array(‘name’, ‘email’, ‘cemail’, ‘invite’);

// Loop over field names, make sure each one exists and is not empty
$error = false;
foreach($required as $field) {
if (empty($_POST[$field])) {
$error = true;
}
}

if ($error) {
echo “All fields are required.”;
} else {
echo “Proceed…”;
}

?>

[/php]

You can add drop down menu’s by using Select and options

[php]

Male Female [/php]
Sponsor our Newsletter | Privacy Policy | Terms of Service