Please enter your first name!

'; } // Check for a second name. if (eregi ('^[[:alpha:]\.\' \-]{2,30}$', stripslashes(trim($_POST['second_name'])))) { $sn = ($_POST['second_name']); } else { $sn = FALSE; echo '

Please enter your last name!

'; } // Check for an email address. if (eregi ('^[[:alnum:]][a-z0-9_\.\-]*@[a-z0-9\.\-]+\.[a-z]{2,4}$', stripslashes(trim($_POST['email'])))) { $e = ($_POST['email']); } else { $e = FALSE; echo '

Please enter a valid email address!

'; } // Check for an email address2. if (eregi ('^[[:alnum:]][a-z0-9_\.\-]*@[a-z0-9\.\-]+\.[a-z]{2,4}$', stripslashes(trim($_POST['email'])))) { $e2 = ($_POST['email2']); } else { $e2 = FALSE; echo '

Please enter a valid email address!

'; } if( $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) ) { // Insert you code for processing the form here, e.g emailing the submission, entering it into a database. // Send the email. $headers = "From: $e2\r\n"; $subject = "Message from: $sn"; $body = "Dear $fn:\n\n"; $body .= " I found this great fishing website, Trossachs-Leisure at http://www.trossachs-leisure.co.uk, and thought that you may be interested.:\n\n"; //$body .= "http://www.whateveraddressyouwanthere.com/activate.php?x=" . mysql_insert_id() . "&y=$a"; mail($_POST['email'], $subject, $body, $headers); // Finish the page. echo '

Thank you for recommending Trossachs Leisure at Venachar Lochside! Your email has been sent to '; echo $fn; echo '
Would you like to recommend to another friend?.

'; //echo 'Thank you. Your message said "'.$_POST['message'].'"'; unset($_SESSION['security_code']); } else { // Insert your code for showing an error message here echo 'Sorry, you have provided an invalid security code'; } } else { //if ($fn && $sn && $e && $e2) { // If everything's OK. //include ('./includes/footer.html'); // Include the HTML footer. //exit(); } //mysql_close(); // Close the database connection. //} // End of the main Submit conditional. ?>

Recommend to a Friend



Cafe Harbour Restaurant Trossachs

If you have enjoyed your experience at Venachar Lochside, we would appreciate it if you would recommend us to your friends.

Just complete the form opposite and we will do the rest for you.