session_start(); ?>
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
if (strlen($_POST["firstname"]) < 2)
$errormsg[] = "Please provide us with your first name.";
if (strlen($_POST["lastname"]) < 2)
$errormsg[] = "Please provide us with your last name.";
if (strlen($_POST["email"]) < 8)
$errormsg[] = "Please provide us with your email address.";
if (isset($errormsg)){
$_POST["MM_insert"] = "";
unset($_POST["MM_insert"]);
}
}
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
if (isset($_GET['rentalid']))
$RentalID = $_GET['rentalid'];
else
$RentalID = 0;
$insertSQL = sprintf("INSERT INTO testimonials (name, email, dayphone, eveningphone, memberid, testimonialtype, testimonial, datecreated, status, rentalid)
VALUES (%s, %s, %s, %s, %s, %s, %s, %s, 'P', %s)",
GetSQLValueString($_POST["firstname"] . " " . $_POST["lastname"], "text"),
GetSQLValueString($_POST['email'], "text"),
GetSQLValueString($_POST['dayphone'], "text"),
GetSQLValueString($_POST['eveningphone'], "text"),
GetSQLValueString($_POST['memberid'], "int"),
GetSQLValueString($_POST['testtype'], "text"),
GetSQLValueString($_POST['testimonial'], "text"),
GetSQLValueString($_POST['datecreated'], "date"),
$RentalID);
mysqli_select_db($database_Vacation, $Vacation);
$Result1 = mysqli_query( $Vacation, $insertSQL) or die(mysqli_error());
$name = "TopChoice Vacation Rentals";
$email = "webmaster@topchoicevacationrentals.com";
$eol = "\r\n";
$message = "Top Choice Vacation Rentals Testimonial$eol";
$message .= "--------------------------------------$eol$eol";
$message .= "Submitted by: " . $_POST["firstname"] . " " . $_POST["lastname"] . "$eol";
$message .= "Email: " . $_POST["email"] . "$eol";
$message .= "Day Phone: " . $_POST["dayphone"] . "$eol";
$message .= "Evening Phone: " . $_POST["eveningphone"] . "$eol";
$message .= "Testimonial Type: " . $_POST["testtype"] . "$eol";
$message .= "Member Number: " . $_POST["memberid"] . "$eol";
$message .= "Testimonial: " . $_POST["testimonial"] . "$eol";
$headers = "MIME-Version: 1.0$eol";
// $headers .= "Content-type: text/html; charset=iso-8859-1$eol";
$headers .= "From: " . $_POST["firstname"] . " " . $_POST["lastname"] . " <" . $_POST["email"] . ">$eol";
mail($email, "Top Choice Vacation Rentals Testimonial", $message, $headers);
$GLOBALS['ThankyouMsg'] = "Thank you " . $_POST["firstname"] . ", for your testimonial.
";
$GLOBALS['ThankyouMsg'] .= "We appreciate your willingness to share your experience with other prospective members.
";
$GLOBALS['ThankyouMsg'] .= "Thanks again!
Brenda Dills
Top Choice Vacation Rentals";
session_register('ThankyouMsg');
$insertGoTo = "top-choice-thankyou.php?thank=" . $_POST["firstname"];
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
}
$page_title = "Top Choice Vacation Rentals Testimonial Request";
include('includes/topchoice-header.php');
?>
Testimonial Requestif (isset($errormsg)){ echo "";
foreach($errormsg as $msg){
echo "$msg Since many folks are not clear on what we do, or how we do it, we would appreciate it if you could put your experience with us into words. Our goal is for you to tell what we may have done for you and your business and how we may have assisted you and your staff, so we may use it in our marketing to other folks in need, who may be unclear or unsure of what we do or how we can help (or be of service).
|
Printer-Friendly Page | Bookmark This Vacation Rental Site | if (isset($_GET['rentalid'])) { ?> " STYLE="font-size: 8 pt">Email This Page to a Friend } else { ?> " STYLE="font-size: 8 pt">Email This Page to a Friend } ?>
Home |
Vacation Rental FAQ's |
About Top Choice Vacation Rentals |
Contact Us |
Vacation Rental Press Room
TCVR Members Log In |
List Your Rental |
Properties For Sale |
Vacation Rentals Specials |
Featured Rentals
Calendar of Events |
Renters Testimonials |
Join Our Frequent User E-Club |
E Vacation Planner
New Vacation Rental Listings |
Link with Us |
Our Friends
Copyright © 2005 by Top Choice Vacation Rentals All Rights Reserved |
Copyright © 2005 by Top Choice Vacation Rentals All Rights Reserved | Privacy & Legal Statement | Site Map