updating the mission trip forms submission code

This commit is contained in:
Chris Cochrun 2022-12-28 10:02:06 -06:00
parent e497d928f3
commit b0dfc4e3b5

View file

@ -12,11 +12,16 @@
data.append("age", age);
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
window.location.href = '/thankyou/';
}
};
xhr.open("POST", "https://n8n.tfcconnection.org/webhook/mt-application");
xhr.send(data);
console.log(data);
console.log("Hallo!");
return false;
/* return false; */
}
function calculate_age(dob) {