0 ,'name'=>0 ,'surname'=>0 ,'email'=>0 ,'agency'=>0 ,'confirm_email'=>0 ,'address1'=>0 ,'town_city'=>0 ,'county_province'=>0 ,'postcode'=>0 ) ; // Create a struct of error messages for when validation fails... // we'll create all POST fields for simplicity // All set to 0 $_REQUEST['validation_errors'] = array('title'=>0 ,'name'=>0 ,'surname'=>0 ,'email'=>0 ,'confirm_email'=>0 ,'agency'=>0 ,'address1'=>0 ,'address2'=>0 ,'town_city'=>0 ,'county_province'=>0 ,'postcode'=>0 ,'kenya_email'=>0 ,'egypt_email'=>0 ,'flight_email'=>0 ) ; // Create the validation messages... NOTE; email and confirm_email is appended to later during the validation routine $_REQUEST['validation_msgs'] = array('title'=>'Please fill out your title...' ,'name'=>'Please fill out your forename / first name...' ,'surname'=>'Please fill out your surname / family name...' ,'email'=>'Please fill out your email address...' ,'confirm_email'=>'Please confirm your email address...' ,'agency'=>'Please fill out your Agency Name...' ,'address1'=>'Please fill out your address...' ,'address2'=>'' ,'town_city'=>'Please fill out your town...' ,'county_province'=>'Please fill out your county / province...' ,'postcode'=>'Please fill out your postcode...' ,'telephone'=>'Please fill out your telephone number...') ; // Function used for the display of instream validation errors function showError($fieldName) { $mandatory_fields = $_REQUEST['mandatory_fields']; $validation_errors = $_REQUEST['validation_errors']; $validation_msgs = $_REQUEST['validation_msgs']; if ($validation_errors[$fieldName] == 1) { echo ("
" . $validation_msgs[$fieldName] . "
") ; } return true; } // Function that generates options for date select boxes... simply pass it an array of values function createOptions($optionsArr, $selectedValue) { $ret=''; foreach ($optionsArr as $value) { $timeNow = time(); $thisTime = strtotime($value); $thisDate = date('d M Y',$thisTime); $selected = ($selectedValue == $thisDate) ? 'Selected=\"selected\"' : '' ; if ($timeNow < $thisTime) { $ret .= "" . "\n"; } } return $ret; } // Validation routine if($_POST['Submit']) { // set some local vars $mandatory_fields = $_REQUEST['mandatory_fields']; $validation_errors = $_REQUEST['validation_errors']; //echo var_dump($_POST); //Do error checking on required fields while (list($key, $value) = each ($_POST)) { if (array_key_exists( $key, $mandatory_fields ) && strlen($_POST[$key]) == 0 ) { $_REQUEST['validation_errors'][$key] = 1; $_hasErrors = 1; } } //echo "
"; //echo var_dump($_REQUEST['validation_errors']); //Check validity of e-mail if ( !validateEmail($_POST['email']) ) { $_REQUEST['validation_msgs']['email'] .= "
" . "Please enter a valid e-mail address" ; $_REQUEST['validation_errors']['email'] = 1; $_hasErrors=1; } // check confirm_email is email if ( $_POST['email'] != $_POST['confirm_email']) { $_REQUEST['validation_msgs']['email'] .= "
" . "Please make sure that you have confirmed your email correctly..." ; $_REQUEST['validation_errors']['email'] = 1; $_hasErrors=1; } //echo "
"; //echo var_dump($validation_errors); //echo var_dump($validation_errors); // Email out if no errors if ($_hasErrors == 0) { // create body of email //use email class $today = date("y-m-d"); $body=(" ".$_POST['email']."".$_POST['Title']."".htmlspecialchars($_POST['name'], ENT_QUOTES)."".htmlspecialchars($_POST['surname'], ENT_QUOTES)."".htmlspecialchars($_POST['abta'], ENT_QUOTES)."".htmlspecialchars($_POST['tta'], ENT_QUOTES)."".htmlspecialchars($_POST['atol'], ENT_QUOTES)."".htmlspecialchars($_POST['agency'], ENT_QUOTES)."".htmlspecialchars($_POST['address1'], ENT_QUOTES)."".htmlspecialchars($_POST['address2'], ENT_QUOTES)."".htmlspecialchars($_POST['town'], ENT_QUOTES)."".htmlspecialchars($_POST['county'], ENT_QUOTES)."".htmlspecialchars($_POST['postcode'], ENT_QUOTES)."".$_POST['kenya_email']."".$_POST['egypt_email']."".$_POST['flight_email']."n$today" ); $mail = new mime_mail(); $mesg = $body; mail($to, $subject, $mesg, $headers); if($_SERVER["HTTP_HOST"] == $debugServer) { echo('
' . $body . '
'); } $_responseMsg = "


Thank you.

Your details have now been added to our system.
If there is anything else you require, or any questions you may have please do not hesitate to contact our Sales & Marketing Team on 0844 875 6030.

"; $_responseMsg .= "
"; } } ?> Kenya Travel Agents and Safari Operators
Kenya Travel Agents and Tour Operators

This section is designed specifically for the use of Travel Agents and Tour Operators interested in our programme of Kenya Beach and Safari Holidays.

Kenya Travel Agents and Operators

We are currently revising our Agents & Operators section.
To be kept up to date when the new site opens please use the form below. You can also use it to add your agency to our email update list.

0) { ?>

Trading and Special Offer Request Form

If you would like to begin working with us and/or be kept update of our latest prices, offers, training and product updates via email please complete the form below:

PLEASE NOTE: * Signifies a required field.

Please select which newsletter you wish to receive
Kenya Beach & Safari Email:
Nile River Cruise Email:
Kenya Flight Offers Email:
Would you like to receive offers by post?

0) echo("\"\"") ?>