0) { $val_date=explode('/',$dat); return $val_date[2]."-".$val_date[0]."-".$val_date[1]; } else { return $dat; } } if(isset($_POST['submit'])) { $firstname=trim($_POST['fname']); //echo $firstname; //exit(); $lastname=trim($_POST['lname']); $phone=$_POST['phone']; $email=trim($_POST['email']); $guest_count=trim($_POST['no_guest']); $date=$_POST['date']; $timehour=$_POST['timehour']; $timemin=$_POST['timemin']; $comments=trim($_POST['comments']); //$receiver = "sattva@sattvaspecialsituations.com"; require_once('recaptchalib.php'); $privatekey = "6LcSdr8SAAAAAGk0fyoArm-wnp6SPeEJpBdQwnqe "; $resp = recaptcha_check_answer($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly //die ("Sorry you have provided invalid security code"); $msg="Sorry,you have provided invalid security code"; } else { require("mail/class.phpmailer.php"); $mail = new PHPMailer(); $mail->From = "info@nirvanacalgary.com"; $mail->FromName = "Nirvana"; $sendEmail = $mail->From;//.",".$mail->FromName; $mail->AddAddress($sendEmail); $mail->AddAddress($email); $mail->WordWrap = 50; $mail->IsHTML(false); $mail->Subject = "Nirvana Reservation"; $mail->Body = "'; //$rootlink = 'http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).'/odr_email.php?hde='.$orderid; $mail->Body .=""; $mail->Body .="
Dear ".$firstname." ".$lastname.",
 
" ; $mail->Body .=nl2br($rfq_emailhdr); $mail->Body .='
This is to confirm that we have received your reservation details
 
"; $mail->Body .=""; $mail->Body .=""; $mail->Body .=""; $mail->Body .=""; $mail->Body .=""; $mail->Body .=""; $mail->Body .=""; $mail->Body .=" "; $mail->Body .=""; $mail->Body .=" "; $mail->Body .=""; $mail->Body .=" "; $mail->Body .=""; $mail->Body .=" "; $mail->Body .=""; $mail->Body .=" "; $mail->Body .=""; $mail->Body .=''; $mail->Body .=""; $mail->Body .=""; $mail->Body .=nl2br($rfq_emailftr); $mail->Body .="
Reservation Details
First Name:   ".$firstname."
Last Name:  ".$lastname."
Phone:  ".$phone."
Email:  ".$email."
No of Guest:  ".$guest_count."
Date:  ".$date."
Time:  ".$timehour.":".$timemin."
Comments:  ".$comments."
 
Thank you for your Interest
 
Regards
Nirvana
 
"; $mail->AltBody = "This is the body in plain text for non-HTML mail clients"; //echo $mail->Body; //exit; //if($_REQUEST['hiddsubmit'] == "") //echo $hash; //exit(); $mail->Send(); $sub_9669='submitted'; $msg="Your Reservation has been submitted successfully."; $firstname=""; $lastname=""; $phone=""; $email=""; $guest_count=""; $date=""; $timehour=""; $timemin=""; $comments=""; } } ?> Nirvana Calgary
nirvana

Reservation

   
First Name:* 
Last Name:  
Phone:  
Email:* 
No of Guest:*
Date:* 
Time:*  :
Comments:   
(Max of 1000 words) 


Copyrights Nirvana Calgary 2011