<LocationMatch "/\.(?!well-known)">
Require all denied
</LocationMatch>
foreach ($_POST["WareKeyItem"] as $k => $item) {
$sum += (int)$_POST["CostItem"][$k]*(int)$_POST["AmountItem"][$k];
}
$('form#f_job').submit(function(event){
event.preventDefault();
var formNm = $('#f_job')[0];
var formData = new FormData(formNm);
// отправляем данные
$.ajax({
url: "/mail.php",
type: "post",
data: formData,
contentType: false,
processData: false,
success: function(data){
console.log(data);
},
});
});