";
$body="Name: $firstname $lastname
Email Address: $email
Phone: $phone
Comments:
$message";
//Line below puts contents of form into email message
mail($to,$subject,$body,$from) or die("email error");
header('Location:success.php'); //if all went well, display success page
} else {
header('Location:error.htm'); //if there was an error, display error page
}
} //end main if
?>