[insert_php]
$addr = “diana@karate-family.com”;
$partySelect = $_POST[“partySelect”];
$studentName = $_POST[“yourName”];
$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 “Thank You for registering for a VMAC Birthday Party! We look forward to seeing you there.”;
$message = “”;
$subj = “Birthday Party Registration Information submitted by $studentName “;
$message .= “Party: $partySelect \n\n”;
$message .= “Submitted by: $studentName\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);
}
$subj2 = “VMAC has received your birthday party registration”;
$message2 = “”;
$message2 = “Virginia Martial Arts Center has received your birthday party registration for ‘” . $partySelect . “‘ . “;
$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 at the party.”;
$extra2 = “From: noreply@karate-family.com\r\nReply-To: noreply@karate-family.com\r\n”;
if ($email!= “”)
{
mail ($email, $subj2 , $message2, $extra2);
}
[/insert_php]