function sendForm() {
var f = document.querySelector("#mk-tech-form");
let formData = new FormData(f);
fetch("php/send.php", {
body: formData,
method: "post"
})
.then(function (response) {
return response.json();
})
.then(function (data) {
f.innerHTML = data.msg;
})
.catch(function (error) {
console.log(error);
});
}
