@extract($_POST);

$rsvpinfo = stripslashes($rsvpinfo);

$femail = ‘info@massconline.com’;

if($rsvpinfo == “yes”) {

$email = stripslashes($email);
$name = stripslashes($name);
$phone = stripslashes($phone);

$text = “MASSC RSVP Christmas party information:\r\n”;
$text .= “Email: $email\r\n”;
$text .= “Name: $name\r\n”;
$text .= “Phone: $phone\r\n”;

$subject = “MASSC Holiday RSVP information $name”;

mail(‘diaweimer@verizon.net’,$subject,$text,”From: <$femail>”);
//mail(‘info@massconline.com’,$subject,$text,”From: <$femail>”);
header(“location: rsvpthankyou.html”);

} else {
header(“location: rsvp2011.html”);
}

?>