u
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
<title>Montessori Teacher Training Courses in Malaysia with certificate</title>
|
||||
<meta name="description" content="Gain valuable teaching skills through the renowned International Institute of Montessori Teacher Training Malaysia, with over 21 years of expertise.">
|
||||
<link rel="canonical" href="https://iimtt.org/montessori-teacher-training-malaysia">
|
||||
<!-- ✅ Add Google reCAPTCHA script -->
|
||||
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
||||
<style>
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
@@ -777,6 +779,11 @@ Master in Education, Victoria University, Australia<br/> International Montessor
|
||||
</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>
|
||||
@@ -1059,6 +1066,7 @@ Master in Education, Victoria University, Australia<br/> International Montessor
|
||||
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;
|
||||
@@ -1066,6 +1074,7 @@ Master in Education, Victoria University, Australia<br/> International Montessor
|
||||
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";
|
||||
@@ -1080,6 +1089,12 @@ Master in Education, Victoria University, Australia<br/> International Montessor
|
||||
// contactError.style.display = "block";
|
||||
// } else
|
||||
{
|
||||
// ✅ Verify reCAPTCHA
|
||||
var captchaResponse = grecaptcha.getResponse();
|
||||
if (!captchaResponse.length) {
|
||||
captchaError.style.display = "block";
|
||||
return;
|
||||
}
|
||||
paymentEmailError.style.display = "none";
|
||||
paymentWarning.style.display = "none";
|
||||
|
||||
@@ -1126,6 +1141,7 @@ Master in Education, Victoria University, Australia<br/> International Montessor
|
||||
document.getElementById("contact").value = "";
|
||||
document.getElementById("paymentEmail").value = "";
|
||||
document.getElementById("city").value = "";
|
||||
grecaptcha.reset(); // reset captcha after submission
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user