lse123
02-21-2008, 05:35 PM
$m does not print in confirm page using <?php echo $m; ?>, well ?
also email does not delivered to $email (email of webuser) when he clicks checkbox for receive what has submitted ?
<?php
/* recipients */
$email = $_POST['email'];
$to = "info@RiverViewVilla.com";
$subject = "Booking Request for RiverViewVilla.com";
$name = $_POST['name'];
$phone = $_POST['phone'];
$comments = $_POST['comments'];
$emailme = $_POST['emailme']; // checkbox
// --------------------------------------
$day = $_POST['day'];
$month = $_POST['month'];
$year = $_POST['year'];
$today = $_POST['today'];
$tomonth = $_POST['tomonth'];
$toyear = $_POST['toyear'];
$tsp = mktime(0, 0, 0, $month, $day, $year);
$tsd = mktime(0, 0, 0, $tomonth, $today, $toyear);
$xdays = ($tsd - $tsp)/(24*60*60);
$datep = date("l F dS, Y", $tsp);
$dated = date("l F dS, Y", $tsd); // check this H:i
// --------------------------------------
include_once ("book-confirm.php");
ob_start();
include('book-confirm.php');
$message = ob_get_clean();
ob_start();
include('email-confirm.php'); //include('book-confirm-to-customer.php');
$message_customer = ob_get_clean();
$headers = "From:info@RiverViewVilla.com";
// $headers .= "\nBcc:fontanatours@yahoo.com"
$headers .= "\nReply-To:info@RiverViewVilla.com";
$headers .= "\nContent-Type: text/html; charset=UTF-8";
$headers .= "\nMIME-Version: 1.0";
mail($to,$subject,$message,$headers);
if ($emailme == "checked") {
mail($email,$subject,$message_customer,$headers);
$m = "An email message has been sent!" ;
} else {
$m = "No" ;
}
?>
also email does not delivered to $email (email of webuser) when he clicks checkbox for receive what has submitted ?
<?php
/* recipients */
$email = $_POST['email'];
$to = "info@RiverViewVilla.com";
$subject = "Booking Request for RiverViewVilla.com";
$name = $_POST['name'];
$phone = $_POST['phone'];
$comments = $_POST['comments'];
$emailme = $_POST['emailme']; // checkbox
// --------------------------------------
$day = $_POST['day'];
$month = $_POST['month'];
$year = $_POST['year'];
$today = $_POST['today'];
$tomonth = $_POST['tomonth'];
$toyear = $_POST['toyear'];
$tsp = mktime(0, 0, 0, $month, $day, $year);
$tsd = mktime(0, 0, 0, $tomonth, $today, $toyear);
$xdays = ($tsd - $tsp)/(24*60*60);
$datep = date("l F dS, Y", $tsp);
$dated = date("l F dS, Y", $tsd); // check this H:i
// --------------------------------------
include_once ("book-confirm.php");
ob_start();
include('book-confirm.php');
$message = ob_get_clean();
ob_start();
include('email-confirm.php'); //include('book-confirm-to-customer.php');
$message_customer = ob_get_clean();
$headers = "From:info@RiverViewVilla.com";
// $headers .= "\nBcc:fontanatours@yahoo.com"
$headers .= "\nReply-To:info@RiverViewVilla.com";
$headers .= "\nContent-Type: text/html; charset=UTF-8";
$headers .= "\nMIME-Version: 1.0";
mail($to,$subject,$message,$headers);
if ($emailme == "checked") {
mail($email,$subject,$message_customer,$headers);
$m = "An email message has been sent!" ;
} else {
$m = "No" ;
}
?>