Do you Have Prayer Request?





if($_SERVER[“REQUEST_METHOD”] == “POST”){
$name = $_POST[‘name’];
$phone = $_POST[‘phone’];
$email = $_POST[’email’];
$member = $_POST[‘Member’];
$branch = $_POST[‘checkbox’];
$request = $_POST[‘prayer-request’];
//echo $name.”
“.$phone.”
“.$email.”
“.$member.”
“.$branch.”
“.$request;

// PREPARE THE BODY OF THE MESSAGE

$message = ”;
$message .= ‘Website Change Request‘;
$message .= ‘

‘; $message .= “”;
$message .= “”;
$message .= “”;
$message .= “”;
$message .= “”;
$message .= “”;
$message .= ”

Name: ” .$name. “
Email: ” .$email. “
Phone No: ” .$phone. “
Member or not: ” .$member. “
Branch Name (main): ” .$branch. “
Prayer Request Message: ” .$branch. “

“;
$message .= “”;

$to = ‘er.sidharth28@gmail.com’;
$subject = $name.” is requesting for Prayer “;
$headers = “From: ” . $email . “\r\n”;
$headers .= ‘Content-type: text/html;charset=iso-8859-1’ . “\r\n”;

if (mail($to, $subject, $message, $headers)) {
echo ‘Your message has been sent.’;
} else {
echo ‘There was a problem sending the email.’;
}

}
?>