if(!isset($HTTP_POST_VARS['edit']))
{
?>
}
else
{
//handle the form
$name=$_POST['name'];
$email=$_POST['email'];
$iam=$_POST['MessageType'];
$iam_other=$_POST['Other'];
$hear_about_wic=$_POST['hear_about_wic'];
$hear_about_wic_other=$_POST['hear_about_wic_other'];
$comments=$_POST['comments'];
$tel=$_POST['tel'];
$fax=$_POST['fax'];
$moreinfo=$_POST['ContactRequested'];
$to = "sachad@pentegroup.com, alumni@westislandcollege.qc.ca";
$subject = "Alumni Update";
$body = "This form was submitted from \n $name\n $email\nThey are\n $iam $iam_other\nThey Heart about us from \n $hear_about_wic\n $hear_about_wic_other\nTheir comments were\n $comments ";
if (mail($to, $subject, $body)) {
echo(" Message successfully sent! "); } else { echo("Message delivery failed... "); } } ?> |