thank you page and mail template

This commit is contained in:
2022-02-25 12:06:26 +00:00
parent f63ab1c930
commit ab1f9d9bf5
21 changed files with 912 additions and 144 deletions

View File

@@ -89,6 +89,7 @@
<!-- Input -->
<input class="form-control" id="phn" type="number" name="telephone"
placeholder="Enter your Contact number" required>
<p id="phnError" style="color: red; display: none;">Enter a valid phone number</p>
</div>
<div class="form-group mb-5">
<!-- Input -->
@@ -507,10 +508,13 @@
warning.style.display = "block";
} else {
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
var mobile = /^\d{10}$/;
if (reg.test(email) == false) {
emailError.style.display = "block";
} else {
}else if (mobile.test(phn) == false) {
phnError.style.display = "block";
} else {
emailError.style.display = "none";
warning.style.display = "none";
let formData = new FormData();
@@ -544,6 +548,7 @@
// window.location.href = "contact-back";
}
);
window.open("thank-you.html");
}
}