implement ths mobile contact

This commit is contained in:
Yannik Schmidt
2021-05-15 19:29:34 +02:00
parent 4cee5a9cf7
commit ced335a209
3 changed files with 20 additions and 18 deletions

View File

@@ -21,9 +21,19 @@ function submitContactForm(){
/* submit the form */
xhr = new XMLHttpRequest();
xhr.open("POST", "/contact-api");
xhr.open("POST", "/kontakt.php");
xhr.onload = formSubmitFinished
formData = new FormData(document.getElementById("contact-form"));
formData.append("sinfo", "dsenda");
formData.append("in", "");
formData.append("anrede", "Herr/Frau");
formData.append("vorname", "");
formData.append("fname", formData.get("name"));
formData.append("mail", formData.get("telefon"));
formData.append("ma", 0);
xhr.send(formData);
}