File: /home/floridasbestlawnandpest/public_html/quotes.php
<?php
$src = isset($_POST['SRC']) ? $_POST['SRC'] : "";
$clickid = isset($_POST['clickid']) ? $_POST['clickid'] : "";
function getClientIp() {
$ipaddress = '';
if (getenv('HTTP_CLIENT_IP')) $ipaddress = getenv('HTTP_CLIENT_IP');
else if (getenv('HTTP_X_FORWARDED_FOR')) $ipaddress = getenv('HTTP_X_FORWARDED_FOR');
else if (getenv('REMOTE_ADDR')) $ipaddress = getenv('REMOTE_ADDR');
else $ipaddress = 'UNKNOWN';
return $ipaddress;
}
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (!empty($_POST['website'])) {
die("Spam detected.");
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-NHH8P6T');</script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="shortcut icon" href="img/favicon.ico" />
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/navbar.css">
<link rel="stylesheet" href="css/testi.css">
<title>Florida's Best Lawn & Pest</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.validate.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min.js"></script>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<style>
.quote-label {
font-size: 22px !important;
font-weight: 600 !important;
}
</style>
</head>
<body>
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NHH8P6T" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<nav class="navbar navbar-expand-lg navbar-light bg-light sticky-top">
<a class="navbar-brand" href="/">
<img src="img/logo-nav.png" width="60" height="60" alt="FBLP">
</a>
<div class="collapse navbar-collapse text-center" id="navbarText">
<ul class="navbar-nav mr-auto">
<li class="nav-item"><a class="nav-link" href="/pestcontrol.php">Pest Control</a></li>
<li class="nav-item"><a class="nav-link" href="/lawncare.php">Lawn Care</a></li>
<li class="nav-item"><a class="nav-link" href="/about.php">About Us</a></li>
<li class="nav-item"><a class="nav-link" href="/quotes.php">Free Quote</a></li>
</ul>
<span class="navbar-text">
<a href="tel:+18448997378">
<span class="navbar-pretext"><i class="fas fa-phone"></i> Call Us Today</span><br>
<span class="navbar-phone">(844) 899-7378</span>
</a>
</span>
</div>
</nav>
<div class="jumbotron jumbotron-fluid hero-bg">
<div class="container">
<div class="row text-center quote">
<div class="col-12">
<form id="valForm" name="valForm" method="POST">
<input type="hidden" id="LeadTypeService" name="LeadTypeService" value="FBLP">
<input type="hidden" id="LeadTypeId" name="LeadTypeId" value="14">
<h1 style="padding-bottom: 18px;">Contact Us</h1>
<div class="row">
<div class="col-md-6 form-group">
<label class="quote-label">First Name:</label>
<input type="text" name="firstname" class="form-control alpha" required>
</div>
<div class="col-md-6 form-group">
<label class="quote-label">Last Name:</label>
<input type="text" name="lastname" class="form-control alpha" required>
</div>
<div class="col-md-6 form-group">
<label class="quote-label">Email:</label>
<input type="email" class="form-control" name="email" required>
</div>
<div class="col-md-6 form-group">
<label class="quote-label">Phone:</label>
<input type="tel" class="form-control numer" maxlength="10" name="phone" required>
</div>
<div class="col-md-4 form-group">
<label class="quote-label">Zipcode:</label>
<input type="text" class="form-control numer" maxlength="5" id="zipCode" name="zip" required>
</div>
<div class="col-md-4 form-group">
<label class="quote-label">City:</label>
<input type="text" class="form-control city" id="city" name="city" readonly>
</div>
<div class="col-md-4 form-group">
<label class="quote-label">State:</label>
<input type="text" class="form-control state" id="state" name="state" readonly>
</div>
<div class="col-md-12 form-group">
<label class="quote-label">Service</label>
<select class="form-control" name="servicetype" required>
<option selected hidden disabled value="">Select Service</option>
<option value="Lawn Pest Control">Lawn Pest Control</option>
<option value="Mosquito Prevention">Mosquito Prevention</option>
<option value="Multiple-Other">Multiple / Other</option>
</select>
</div>
<div class="col-12 d-flex justify-content-center mb-3">
<div class="g-recaptcha" data-sitekey="6LdzH0IsAAAAAENO6h4K9eZ_9QwkR2BnnNnv65Ux"></div>
</div>
<input type="text" name="website" style="display:none" value="">
<div class="col-12 text-center">
<button type="submit" id="submitButton" class="btn btn-success btn-lg quote-btn-submit">Get Quote</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<footer>
<div class="py-4">
<div class="container">
<div class="d-block d-lg-flex text-center">
<div class="mb-2 mb-lg-0">
<span class="font-pn-c-sb h3 footer-title">Florida's Best Lawn & Pest</span>
<br>
<span class="font-pn-c-sb h6">141 NW 20th St G7, Boca Raton, FL 33431</span>
<br>
<span class="font-pn-c-sb h6"><a href="Tel: +18448997378">(844) 899-7378</a></span>
</div>
<div class="ml-auto">
<br>
<img src="img/quality-pro.png" alt="Quality Pro" title="Quality Pro" class="mr-4">
<img src="img/epa.png" alt="EPA" title="EPA" class="mr-4">
</div>
</div>
</div>
</div>
<div class="py-2">
<div class="container">
<p class="mb-0 font-12 text-dark text-center">© 2023 Florida's Best Lawn & Pest. All Rights Reserved.</p>
</div>
</div>
</footer>
<script>
$(document).ready(function() {
var form = $("#valForm");
form.validate({
errorPlacement: function(error, element) { element.before(error); },
rules: {
firstname: "required",
lastname: "required",
email: { required: true, email: true },
phone: { required: true, minlength: 10 },
zip: { required: true, minlength: 5 }
}
});
$("#submitButton").click(function(ev) {
ev.preventDefault();
if (!form.valid()) return false;
var response = grecaptcha.getResponse();
if(response.length == 0) {
alert("Please click the 'I'm not a robot' checkbox.");
return false;
}
submitForm();
});
function submitForm() {
$('#submitButton').prop('disabled', true).text('Processing...');
$.ajax({
type: 'post',
dataType: 'jsonp',
url: 'https://leads.floridasbestlawnandpest.com/api/PostLead',
data: $('#valForm').serialize(),
success: function() { window.location.href = "./form-success.php"; },
error: function() { window.location.href = "./form-success.php"; }
});
}
$('#zipCode').on("input", function() {
var zip = $(this).val();
if (zip.length == 5) {
$.ajax({
type: 'GET',
url: 'https://ziplookup.visualyzers.com/Ziplookup?zipcode=' + zip,
success: function(results) {
if (results) {
$('#city').val(results.city);
$('#state').val(results.state);
}
}
});
}
});
$(document).on('keydown', '.alpha', function(e) {
if (e.key.length == 1) return /[a-z\s]/i.test(e.key);
}).on('keydown', '.numer', function(e) {
if (e.key.length == 1) return /[0-9]/.test(e.key);
});
});
</script>
<script src="https://kit.fontawesome.com/4371db22ab.js" crossorigin="anonymous"></script>
<script src="js/scripts.js"></script>
</body>
</html>