u
This commit is contained in:
@@ -157,6 +157,10 @@ include("_navbar.php");
|
||||
</div>
|
||||
<div class="form-group mb-5">
|
||||
<input type="text" id="city2" 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>
|
||||
<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="paymentSubmitForm2()"> Submit</button>
|
||||
@@ -624,6 +628,7 @@ Master in Education, Victoria University, Australia<br/> International Montessor
|
||||
var paymentSuccess2 = document.getElementById('paymentSuccess2');
|
||||
var paymentEmailError2 = document.getElementById('paymentEmailError2');
|
||||
var req1 = document.getElementById("req1");
|
||||
var captchaError = document.getElementById('captchaError');
|
||||
|
||||
function paymentSubmitForm2() {
|
||||
user2 = document.getElementById("user2").value;
|
||||
@@ -631,6 +636,8 @@ Master in Education, Victoria University, Australia<br/> International Montessor
|
||||
paymentEmail2 = document.getElementById("paymentEmail2").value;
|
||||
city2 = document.getElementById('city2').value;
|
||||
paymentSuccess2.style.display = "none";
|
||||
captchaError.style.display = "none";
|
||||
|
||||
console.log('all details',user2,contact2,paymentEmail2,city2)
|
||||
if (user2 == '' || contact2 == '' || paymentEmail2 == '' || city2 =='') {
|
||||
paymentWarning2.style.display = "block";
|
||||
@@ -647,6 +654,14 @@ Master in Education, Victoria University, Australia<br/> International Montessor
|
||||
{
|
||||
paymentEmailError2.style.display = "none";
|
||||
paymentWarning2.style.display = "none";
|
||||
|
||||
// ✅ Verify reCAPTCHA
|
||||
var captchaResponse = grecaptcha.getResponse();
|
||||
if (!captchaResponse.length) {
|
||||
captchaError.style.display = "block";
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
let formData = new FormData();
|
||||
formData.append('formName', 'IIMTT-Malaysia-Get-in-Touch');
|
||||
|
||||
Reference in New Issue
Block a user