Information Submitted

[insert_php]
$addr = “officemgr@karate-family.com”;

$studentName= $_POST[“studentName”];
$getStartedOption = $_POST[“getStartedOption”];
$getStartedText = “”;
if ($getStartedOption == “1”)
{
$getStartedText = “Try a Free Class”;
}

if ($getStartedOption == “2”)
{
$getStartedText = “Take a two week Intro Program ($19.95)”;
}

if ($getStartedOption == “3”)
{
$getStartedText = “One Month Trial Program ($39.95 – includes a free uniform)”;
}

$studentName = $_POST[“studentName”];
$address = $_POST[“address”];
$city = $_POST[“city”];
$state = $_POST[“state”];
$zip = $_POST[“zip”];
$dob = $_POST[“dob”];
$age = $_POST[“age”];
$email = $_POST[“email”];
$homePhone = $_POST[“homePhone”];
$cellPhone = $_POST[“cellPhone”];

echo “Congratulations! You have taken the first step in your martial arts journey.

We will be in contact with you soon to schedule your first class.”;

$message = “”;
$subj = “Signup Information submitted by $studentName “;

$message .= “Submitted by: $studentName\n”;
$message .= “Option: $getStartedText\n”;
$message .= “Address: $address\n”;
$message .= “City: $city\n”;
$message .= “State: $state\n”;
$message .= “Zip: $zip\n”;
$message .= “DOB: $dob\n”;
$message .= “Age: $age\n”;
$message .= “Email: $email\n”;
$message .= “Home Phone: $homePhone\n”;
$message .= “Cell Phone: $cellPhone\n”;

$extra = “From: noreply@karate-family.com\r\nReply-To: $email\r\n”;

if ($addr != “”)
{
mail ($addr, $subj, $message, $extra);
mail (“chrismizelle@cox.net”, $subj, $message, $extra);
}

$subj2 = “VMAC has received your information”;
$message2 = “”;
$message2 = “Virginia Martial Arts Center has received the information you submitted expressing interest in getting started. “;
$message2 .= “We will contact you shortly to help you get started with your first class.\n”;
$message2 .= “\nIf you have any questions, feel free to call us at (757) 483-0195.\n\n”;
$message2 .= “Thank you and we will see you in class soon.”;
$extra2 = “From: noreply@karate-family.com\r\nReply-To: noreply@karate-family.com\r\n”;
mail ($email, $subj2 , $message2, $extra2);
[/insert_php]

dontHaveToBeGreat

Top