session_start(); $colname_Recordset1 = "1"; if (isset($_GET['rentalid'])) { $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_GET['rentalid'] : addslashes($_GET['rentalid']); mysqli_select_db($Vacation,$database_Vacation); $query_Recordset1 = sprintf("SELECT listingheadline FROM rentals WHERE rentalid = %s", $colname_Recordset1); $Recordset1 = mysqli_query( $Vacation, $query_Recordset1) or die(mysqli_error()); $row_Recordset1 = mysqli_fetch_assoc($Recordset1); } if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { if(($_SESSION['security_code'] == $_POST['security_code']) && (!empty($_SESSION['security_code'])) ) unset($_SESSION['security_code']); else $errormsg[] = "You did not enter the correct security code."; if (strlen($_POST["fromname"]) < 2) $errormsg[] = "Please provide us with your name."; if (strlen($_POST["fromemail"]) < 8) $errormsg[] = "Please provide us with your email address."; if (strlen($_POST["toname"]) < 2) $errormsg[] = "Please provide us with your friend's name."; if (strlen($_POST["toemail"]) < 8) $errormsg[] = "Please provide us with your friend's 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")) { $email = $_POST["toemail"]; // $email = "mliskin@miriamliskin.com"; $eol = "\r\n"; if ($_POST["comments"] == "") if (isset($row_Recordset1)) $message = "
I thought you might be interested in this vacation rental listing:
"; else $message = "I thought you might be interested in this vacation rental site:
"; else $message = "" . $_POST["comments"] . "
"; if (isset($row_Recordset1)) { $message .= ''; $message .= $row_Recordset1['listingheadline'] . "
"; } else $message .= ''; $headers = "MIME-Version: 1.0$eol"; $headers .= "Content-type: text/html; charset=iso-8859-1$eol"; $headers .= "From: " . $_POST["fromname"] . " <" . $_POST["fromemail"] . ">$eol"; mail($email, "Top Choice Vacation Rental Listing", $message, $headers); $GLOBALS['ThankyouMsg'] = "Thank you " . $_POST["fromname"] . ", for visiting our Web Site. EMAIL A FRIENDif (isset($errormsg)){ echo "";
foreach($errormsg as $msg){
echo "$msg TRAVELERS: Send a link to this rental property page to a friend.
|
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