"Admission - $25.00",); // $additionalItemsSelect = array(); // Membership Types $memberships = array("member" => "Member - $0.00", "nonmember" => "Non-member - $4.00" ); // Settings $eventName = "Fly with the Coaster Crew at Kentucky Kingdom!"; $eventDate = "Sunday
June 2nd, 2019"; $featuresLeft = "
  • Tours
  • Meal in Pavilions
  • All day Drink Wristband
  • ERT on Kentucky Flyer
  • And more!
  • "; $maxGuests = 4; $actionPage = "kentucky-kingdom.php"; if($enabled){ if($_SERVER['REQUEST_METHOD'] != "POST"){ require("header.php"); ?>



    Event Attendee

    Enter your name.

    Enter your email.

    Enter your phone number. Ex: 555-555-5555

    Enter your Coaster Crew Badge Number or what club you are a part of

    Full mailing address.

    $v){ echo "
    ".$v."

    "; } ?>

    Guests

    Add Guest

    Payment Summary

    Name Cost
    $0.00
      Total: $0.00

    Thank your for your registration!

    Payment Information

    Check

    Send check payable to Coastercrew for $ to:
    Coaster Crew
    C/O Kate Jones
    5361 Crescent Drive
    Hilliard, OH 43026

    Please write "" in the memo.

    Credit Card / Paypal

    3.0%+$0.30 will be added to your order to cover paypal fees

    ">

    You do not need a PayPal account to pay via PayPal.
    window.onload=function(){ parent.document.getElementById('submitButton').disabled = false; } "; $errorPre = "$reenable
    "; $errorPost = "
    "; while(list($k,$v)=each($_POST)){ if(!is_array($v)){ if(get_magic_quotes_gpc()){ $$k = htmlentities(strip_tags(stripslashes($v))); }else{ $$k = htmlentities(strip_tags($v)); } }else{ $$k = $v; } } if(empty($fullname)){ die("$errorPre Name for attendee is missing $errorPost"); }elseif(empty($email)){ die("$errorPre Email for attendee is missing $errorPost"); }elseif(empty($phone)){ die("$errorPre Phone number for attendee is missing $errorPost"); }elseif(empty($badge)){ die("$errorPre Badge for attendee is missing $errorPost"); }elseif(empty($address)){ die("$errorPre Address for attendee is missing $errorPost"); }elseif($attendeeEventFee == ""){ die("$errorPre Event fee for attendee is missing $errorPost"); }elseif(!filter_var($email, FILTER_VALIDATE_EMAIL)){ die("$errorPre Invalid email address for attendee $errorPost"); } for ($i=1; $i<=$maxGuests; $i++){ $varnameName = "guest".$i."_fullname"; $varnameEventFee = "guest".$i."EventFee"; $varnameMembership = "guest".$i."membership"; if($$varnameName != "" || $$varnameEventFee != "" || $$varnameMembership != ""){ if(empty($$varnameName)){ die("$errorPre Name for guest ".$i." is missing $errorPost"); }elseif($$varnameEventFee == ""){ die("$errorPre Event fee for guest ".$i." is missing $errorPost"); }elseif($$varnameMembership == ""){ die("$errorPre Membership for guest ".$i." is missing $errorPost"); } } } $totalCost = 0; $subid = rand_string(5); $message = ""; $message .= " Submission ID: ".$subid."

    Name: ".$fullname."
    Email: ".$email."
    Phone: ".$phone."
    Badge: ".$badge."
    Address:
    ".nl2br($address)."
    Event Fee: ".$attendeeEventFee."
    "; $cost = explode("- $", $attendeeEventFee); $totalCost += $cost[1]; if(!empty($additionalItems)){ $message .= " Additonal Items:
    "; foreach( $additionalItems as $key => $value){ $message .= $value . "
    "; $cost = explode("- $", $value); $totalCost += $cost[1]; } } $message .= "
    "; for ($i=1; $i<=$maxGuests; $i++){ $varnameName = "guest".$i."_fullname"; $varnameEventFee = "guest".$i."EventFee"; $varnameMembership = "guest".$i."membership"; $varnameAdditionalItems = "guest".$i."additionalItems"; if($$varnameName != ""){ $message .= " Guest ".$i." Name: ".$$varnameName."
    Guest ".$i." Event Fee: ".$$varnameEventFee."
    Guest ".$i." Membership: ".$$varnameMembership."
    "; $cost = explode("- $", $$varnameEventFee); $totalCost += $cost[1]; $cost = explode("- $", $$varnameMembership); $totalCost += $cost[1]; if(!empty($$varnameAdditionalItems)){ $message .= " Additonal Items:
    "; foreach($$varnameAdditionalItems as $key => $value){ $message .= $value . "
    "; $cost = explode("- $", $value); $totalCost += $cost[1]; } } $message .= "
    "; } } $message .= "Total Cost: $".number_format($totalCost,2).""; $message .= ""; $body = $message; $emailTo = array($email,'hollorantimothy@yahoo.com','matthew.rydzik@gmail.com'); // $emailTo = array($email,'matthew.rydzik@gmail.com'); $sendgrid = new SendGrid('coastercrew', 'FrAFasT2'); $email = new SendGrid\Email(); $email->setTos($emailTo)-> setFrom('tim@coastercrew.net')-> setFromName('Coaster Crew')-> setSubject($eventName . " Registration")-> setText($body)-> setHtml($body); $r = $sendgrid->send($email); ?>
    Registration is closed. Event has reached capacity. Join us at our next event!"; require("footer.php"); } ?>