Mortgage App
This commit is contained in:
parent
82b84bcb6c
commit
940ae1eda1
@ -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"]));
|
||||
|
||||
24
index.php
24
index.php
@ -24,7 +24,7 @@
|
||||
<li class="nav-item"><a class="nav-link" href="#intro">Intro</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#mortgages">Mortgages</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#about">About</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="/blog.php">Blog</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#testimonials">Testimonials</a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#contact">Contact</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
@ -77,28 +77,28 @@
|
||||
<img src="assets/pasted-20251218-155926-3e104bc6.jpg" alt="A photo of the mortgage agent" class="img-fluid rounded-circle mb-3">
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<p class="lead">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</p>
|
||||
<p class="lead">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</p><p class="lead">-Sean</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="blog" class="container">
|
||||
<h2 class="text-center mb-4">Latest From The Blog</h2>
|
||||
<div class="row">
|
||||
<section id="testimonials" class="container">
|
||||
<h2 class="text-center mb-4">Testimonials</h2>
|
||||
<div class="row">
|
||||
<div class="col-md-6 mb-4">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Mortgage News</h5>
|
||||
<p class="card-text">A short excerpt of the blog post will appear here.</p>
|
||||
<p class="card-text">"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."</p>
|
||||
<footer class="blockquote-footer">Shealyn</footer>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 mb-4">
|
||||
<div class="col-md-6 mb-4">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Another Blog Post</h5>
|
||||
<p class="card-text">A short excerpt of the blog post will appear here.</p>
|
||||
<p class="card-text">"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"</p>
|
||||
<footer class="blockquote-footer">Drew</footer>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -129,6 +129,10 @@
|
||||
<label for="message" class="form-label">Message</label>
|
||||
<textarea class="form-control" id="message" name="message" rows="5" required></textarea>
|
||||
</div>
|
||||
<div style="display:none;">
|
||||
<label for="honeypot">Leave this field blank</label>
|
||||
<input type="text" name="honeypot" id="honeypot">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Send Message</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user