From 940ae1eda11b4165324963c5734cb1d50c45d105 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Thu, 18 Dec 2025 17:27:42 +0000 Subject: [PATCH] Mortgage App --- contact.php | 8 ++++++++ index.php | 24 ++++++++++++++---------- 2 files changed, 22 insertions(+), 10 deletions(-) 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 @@ - + @@ -77,28 +77,28 @@ A photo of the mortgage agent
-

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

-
-

Latest From The Blog

-
+
+

Testimonials

+
-
Mortgage News
-

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."

+
Shealyn
-
+
-
Another Blog Post
-

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"

+
Drew
@@ -129,6 +129,10 @@
+
+ + +