Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: /bookings.html" ); exit; /* echo("
"); print_r($_POST); print_r($_COOKIE); echo(""); */ function http_post ($url, $data) { $data_url = http_build_query ($data); $data_len = strlen ($data_url); return array ('content'=>file_get_contents ($url, false, stream_context_create (array ('http'=>array ('method'=>'POST' , 'header'=>"Connection: close\r\nContent-Length: $data_len\r\n" , 'content'=>$data_url )))) , 'headers'=>$http_response_header ); } // cleaning \r\n foreach($data as $name =>$val) { if ($name!="notes") $data[$name] = stripslashes(preg_replace('/[\n|\r].*/', '', $val)); } extract($data); if(!isset($subscr)) $subscr="no"; //[package] => rainforest-package $subject = "East Bedarra Booking Form (CN) ".date("Y"); if(!$cookies) $subject .=" {SPAM}"; else { // send autoresponds $sub = "Misty Mountains Booking Form 2011"; $msg='Welcome to paradise and thank you for your enquiry! Making the decision to stay at one of our luxurious retreats is to share the unique beauty of nature\'s wonderland with the one you love. We hope to welcome you as our guests and will respond to your request within 24hours. Please note this is a booking request only and does not guarantee availability of the property. In the meantime, let your imagination run free so that together we can create an experience, just for the two of you. With every great wish, Sharon East Bedarra - Romantic Retreats Phone: 07 4067 5311 (International: +61 7 4067 5311) '; $hdr = "From: \"Sharon Salvestrin\"
Your inquiry has been submitted successfully.
$message"; $page=file_get_contents("bookings.html"); $page=preg_replace('@