diff --git a/contact.php b/contact.php index f8f7dfe..b6f518f 100644 --- a/contact.php +++ b/contact.php @@ -4,6 +4,14 @@ session_start(); require_once __DIR__ . '/mail/MailService.php'; if ($_SERVER["REQUEST_METHOD"] == "POST") { + // Honeypot check + if (!empty($_POST['honeypot'])) { + // This is a bot, redirect with a success message + $_SESSION['success'] = "Thank you for your message! I will get back to you shortly."; + header("Location: index.php#contact"); + exit; + } + $name = strip_tags(trim($_POST["name"])); $email = filter_var(trim($_POST["email"]), FILTER_SANITIZE_EMAIL); $message = strip_tags(trim($_POST["message"])); diff --git a/index.php b/index.php index 4c2144b..996b682 100644 --- a/index.php +++ b/index.php @@ -24,7 +24,7 @@
I am a licensed mortgage agent in Ontario, I specialize in hard to place mortgages, refinancing and reverse mortgages, if you have any questions or your mortgage is coming up for renewal, contact me today
+I am a licensed mortgage agent in Ontario, I specialize in hard to place mortgages, refinancing and reverse mortgages, if you have any questions or your mortgage is coming up for renewal, contact me today
-Sean
A short excerpt of the blog post will appear here.
+"I have worked with Sean on multiple occasions and I highly recommend working with him. Sean has an amazing attitude, he is calm, reassuring and patient which is so important during stressful mortgage moments. On top of all that he clearly guides you through the process and comes up with the best solutions for your needs. Will continue working with Sean on all my mortgage needs."
+A short excerpt of the blog post will appear here.
+"Sean was great to work with! He lead me professionally through the paperwork and red tape associated with this. Would definitely recommend him to my friends and family looking for these services- top notch. Thanks Sean, Drew"
+