@extract($_POST);

$masscmemberinfo = stripslashes($masscmemberinfo);

$femail = ‘info@massconline.com’;

if($masscmemberinfo == “yes”) {

$member_name = stripslashes($member_name);
$mailing_address = stripslashes($mailing_address);
$city_state_zip = stripslashes($city_state_zip);
$day_phone = stripslashes($day_phone);
$email = stripslashes($email);
$areas_of_speciality = stripslashes($areas_of_speciality);
$volunteer=implode(“\r\n”, $volunteer);
$volunteer = stripslashes($volunteer);
$comments = stripslashes($comments);

$text = “MASSC member information:\r\n”;
$text .= “Name: $member_name\r\n”;
$text .= “Address: $mailing_address\r\n”;
$text .= “City State and Zip Code: $city_state_zip\r\n”;
$text .= “Day Time Phone: $day_phone\r\n”;
$text .= “Email: $email\r\n”;
$text .= “Areas of Speciality: $areas_of_speciality\r\n”;
$text .= “Areas for Volunteer Work: \r\n$volunteer\r\n”;
$text .= “Comments: $comments\r\n”;

$subject = “MASSC member information from dues payment $yourname”;

mail(‘corliss@media-enterprises.com’,$subject,$text,”From: <$femail>”);
//mail(‘info@massconline.com’,$subject,$text,”From: <$femail>”);
header(“location: thankyou.html”);

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

?>