setPublicKey('6LfxXAATAAAAANlzEt_wscIoqfSclsgPvYRn26Rc'); $captcha->setPrivateKey('6LfxXAATAAAAANr41RWZ9xnJa-1l35ytDX85eIpT'); $post = array(); // to pass through handle function and preserve on form on post. $captcha_error = ""; function handleForm() { global $captcha, $post, $captcha_error, $show_form, $error_message; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $post = array( 'name' => filter_input(INPUT_POST, 'name', FILTER_SANITIZE_STRING), 'email' => filter_input(INPUT_POST, 'email', FILTER_SANITIZE_EMAIL), 'phone' => filter_input(INPUT_POST, 'phone', FILTER_SANITIZE_STRING), 'package' => filter_input(INPUT_POST, 'package', FILTER_SANITIZE_STRING), 'addpack' => filter_input(INPUT_POST, 'addpack', FILTER_SANITIZE_STRING), 'comments' => filter_input(INPUT_POST, 'message', FILTER_SANITIZE_STRING) ); // recaptcha validation $response = $captcha->check(); if ($response->isValid() && !empty($post['name']) && !empty($post['email'])) { //$transport = Swift_SendmailTransport::newInstance(); $transport = Swift_SmtpTransport::newInstance('smtp.mandrillapp.com', 587); $transport->setUsername('it@olwm.com'); $transport->setPassword('wHHESeAIFLI6PTU4caHleA'); $current_url = parse_url(sprintf('http://%s%s', $_SERVER['HTTP_HOST'], $_SERVER['REQUEST_URI'])); $settings = array( 'recipients' => array( 'resort@zionponderosa.com' => 'Zion Ponderosa Resort' //'james@thayn.net' => 'James Thayn' ), 'recipients_bcc' => array( //'julie@zionponderosa.com' => 'Julie', //'mark@oculusmedia.com' => 'Mark Wade', 'jthayn@olwm.com' => 'James Thayn', 'jake@zionponderosa.com' => 'Jake' ),'subject' => 'Zion Ponderosa Adventure Package Request' ); $message = sprintf("Greetings,\n\n" . "ADVENTURE PACKAGE REQUEST - sent %s by %s.\n\n" . "%s" . "Email: %s\n\n" . "Wants Adventure Package: %s\n\n" . "Total Adventure Package(s): %s\n\n" . "Comments:\n" . str_repeat('-', 50) . "\n%s\n" . str_repeat('-', 50) . "\n\n" . "%s", date('M jS \a\t h:i A T'), $post['name'], (!empty($post['phone'])) ? sprintf("Phone: %s\n\n", $post['phone']) : '', $post['email'], $post['package'], $post['addpack'], $post['message'], ($current_url !== FALSE) ? sprintf('This form was sent from: %s://%s%s', $current_url['scheme'], $current_url['host'], $current_url['path']) : ''); // Create the message $message = Swift_Message::newInstance() // Give the message a subject ->setSubject($settings['subject']) // Set the From address with an associative array ->setFrom(array($post['email'] => $post['name'])) // Set the To addresses with an associative array ->setTo($settings['recipients']) ->setBcc($settings['recipients_bcc']) // Give it a body ->setBody($message); // Create the Mailer using your created Transport $mailer = Swift_Mailer::newInstance($transport); $sent = $mailer->send($message, $failedRecipients); /////////////Send Customer Confirmation Email////////////////////////// $settings_conf = array( 'recipients' => array( //'resort@zionponderosa.com' => 'Zion Ponderosa Resort' $post['email'] => $post['name'] ), 'from' => array( 'resort@zionponderosa.com' => 'Zion Ponderosa Resort' ),'subject' => 'Zion Ponderosa Recreation Submission' ); $message_conf = sprintf("Greetings %s,\n\n" . "Thank you for Requesting your Adventure Package(s).\n\nYou may contact us with any questions at 800-293-5444 or 435-648-2700, or by replying to your confirmation e-mail\n\n" . "Zion Ponderosa\n\n", $post['name']); // Create the message $message_conf = Swift_Message::newInstance() // Give the message a subject ->setSubject($settings_conf['subject']) // Set the From address with an associative array ->setFrom($settings_conf['from']) // Set the To addresses with an associative array ->setTo($settings_conf['recipients']) ->setBcc($settings_conf['recipients_bcc']) // Give it a body ->setBody($message_conf); // Create the Mailer using your created Transport $mailer_conf = Swift_Mailer::newInstance($transport); $sent_conf = $mailer_conf->send($message_conf, $failedRecipients); // reset post values $post = array( 'name' => '', 'phone' => '', 'email' => '', 'comments' => '' ); $show_form = false; //echo '

Your request has been sent

'; } else { $error_message = '

Your request could not be sent! Please check the form fields and try again.

'; if (!$response->isValid()) { $captcha_error = (preg_match('/incorrect-captcha-sol/i', $response->getError())) ? '

The text field entry was incorrect. Please try again.

' : $response->getError(); } } } else { $post = array( 'name' => '', 'phone' => '', 'email' => '', 'comments' => '' ); } } ?> Adventure Package Request Form | Zion National Park | Zion Ponderosa

ADVENTURE PACKAGE REQUEST

Contact Us at Zion Ponderosa
Step 3

USE THIS FORM TO REQUEST VOUCHERS IN ADVANCE

Please add Adventure Package(s) to my existing reservation: (Each package contains 10 activity vouchers.)
Note: We will add this to your reservation and confirm via e-mail. We'll contact you if we have questions.
* Name: (name under which your reservation appears)
* Phone: (your BEST contact information)
* E-mail:
Total number of Adventure Packages (packs of 10 vouchers).
 
Once you have ordered your adventure package:

Comments:




Thank you for requesting your Adventure Package(s).
You may contact us with any questions at 800-293-5444 or 435-648-2700, or by replying to your confirmation e-mail.

Zion Ponderosa

Step 3
Reserve
the Adventures you want.

Zions Park Lodge