// HTTP
define('HTTP_SERVER', 'http://oc-store.vl/');
// HTTPS
define('HTTPS_SERVER', 'http://oc-store.vl/');
// DIR
define('DIR_APPLICATION', 'D:/OpenServer/domains/oc-store.vl/catalog/');
define('DIR_SYSTEM', 'D:/OpenServer/domains/oc-store.vl/system/');
define('DIR_IMAGE', 'D:/OpenServer/domains/oc-store.vl/image/');
define('DIR_LANGUAGE', 'D:/OpenServer/domains/oc-store.vl/catalog/language/');
define('DIR_TEMPLATE', 'D:/OpenServer/domains/oc-store.vl/catalog/view/theme/');
define('DIR_CONFIG', 'D:/OpenServer/domains/oc-store.vl/system/config/');
define('DIR_CACHE', 'D:/OpenServer/domains/oc-store.vl/system/storage/cache/');
define('DIR_DOWNLOAD', 'D:/OpenServer/domains/oc-store.vl/system/storage/download/');
define('DIR_LOGS', 'D:/OpenServer/domains/oc-store.vl/system/storage/logs/');
define('DIR_MODIFICATION', 'D:/OpenServer/domains/oc-store.vl/system/storage/modification/');
define('DIR_UPLOAD', 'D:/OpenServer/domains/oc-store.vl/system/storage/upload/');
$query = "INSERT INTO myotziv(title, date, time, text) VALUES ('$name', '$date', '$time', $text')";
$query = "INSERT INTO myotziv(title, `date`, `time`, `text`) VALUES ('$name', '$date', '$time', $text')";
mysqli_query($conn, $query) OR die(mysqli_error($conn));
if($_SERVER['REQUEST_METHOD'] == POST){
//Дальнейшие проверки
}
$query = "INSERT INTO myotziv(title,date, time, text) VALUES ('$name', '$date', '$time', $text')";
$(".header-form").submit(function(e) { //Change
e.preventDefault();
var th = $(this);
$.ajax({
type: "POST",
url: "mail.php", //Change
data: {
form_data : th.serialize()
},
}).done(function() {
$(th).find(".succsess-form").addClass("active").css("display", "flex").hide().fadeIn();
setTimeout(function() {
$(th).find(".succsess-form").removeClass("active").fadeOut();
th.trigger("reset");
}, 3000);
});
return false;
});