u
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
<!-- Title -->
|
||||
<title>IIMTT Montessori Teacher Training in Nairobi | Enroll Now!</title>
|
||||
<meta name="description" content="Our experienced faculty, hands-on training provide a holistic learning experience that helps you develop a deep understanding of the Montessori philosophy and techniques.">
|
||||
|
||||
<link rel="canonical" href="https://iimtt.org/montessori-teacher-training-nairobi">
|
||||
<meta name="description" content="Our experienced faculty, hands-on training provide a holistic learning experience that helps you develop a deep understanding of the Montessori philosophy and techniques.">
|
||||
<link rel="canonical" href="https://iimtt.org/montessori-teacher-training-nairobi">
|
||||
<!-- ✅ Add Google reCAPTCHA script -->
|
||||
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Google Tag Manager (noscript) -->
|
||||
@@ -149,6 +150,11 @@ include("_navbar.php");
|
||||
</div>
|
||||
<div class="form-group mb-5">
|
||||
<input type="text" id="city" aria-required="true" name="widget-contact-form-city" required class="form-control required name shadow-lg" style="border-radius:26px;min-height:0px;padding:6px;padding-left:16px" placeholder="Your City">
|
||||
</div>
|
||||
<!-- ✅ Google reCAPTCHA Widget -->
|
||||
<div class="form-group text-center">
|
||||
<div class="g-recaptcha" data-sitekey="6LfLjvgrAAAAAIlFINpRhfP5HgnJbJ8lPQbVky8Z"></div>
|
||||
<p id="captchaError" style="color: red; display: none;">Please verify you are not a robot.</p>
|
||||
</div>
|
||||
<div class="form-group mb-0 text-center">
|
||||
<button style="background-color: #f7a325;margin:10px 0px;border-radius:26px;" class="btn btn-sm lift shadow-lg px-8" type="button" onclick="paymentSubmitForm()"> Book a Seat</button>
|
||||
@@ -580,6 +586,7 @@ include("_navbar.php");
|
||||
var paymentSuccess = document.getElementById('paymentSuccess');
|
||||
var paymentEmailError = document.getElementById('paymentEmailError');
|
||||
var req = document.getElementById("req");
|
||||
var captchaError = document.getElementById('captchaError');
|
||||
|
||||
function paymentSubmitForm() {
|
||||
user = document.getElementById("user").value;
|
||||
@@ -587,6 +594,8 @@ include("_navbar.php");
|
||||
paymentEmail = document.getElementById("paymentEmail").value;
|
||||
city = document.getElementById('city').value;
|
||||
paymentSuccess.style.display = "none";
|
||||
captchaError.style.display = "none";
|
||||
|
||||
console.log('all details',user,contact,paymentEmail,city)
|
||||
if (user == '' || contact == '' || paymentEmail == '' || city =='') {
|
||||
paymentWarning.style.display = "block";
|
||||
@@ -602,6 +611,12 @@ include("_navbar.php");
|
||||
// } else
|
||||
{
|
||||
paymentEmailError.style.display = "none";
|
||||
// ✅ Verify reCAPTCHA
|
||||
var captchaResponse = grecaptcha.getResponse();
|
||||
if (!captchaResponse.length) {
|
||||
captchaError.style.display = "block";
|
||||
return;
|
||||
}
|
||||
paymentWarning.style.display = "none";
|
||||
|
||||
let formData = new FormData();
|
||||
@@ -646,7 +661,8 @@ include("_navbar.php");
|
||||
document.getElementById("user").value = "";
|
||||
document.getElementById("contact").value = "";
|
||||
document.getElementById("paymentEmail").value = "";
|
||||
document.getElementById("city").value = "";
|
||||
document.getElementById("city").value = "";
|
||||
grecaptcha.reset(); // reset captcha after submission
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user