edit blocks (gendir 10 + icon)
This commit is contained in:
@@ -9,6 +9,7 @@ if ($_SERVER["REQUEST_METHOD"] !== "POST") {
|
||||
$name = trim(strip_tags($_POST["name"] ?? ""));
|
||||
$phone = trim(strip_tags($_POST["phone"] ?? ""));
|
||||
$email = trim(strip_tags($_POST["email"] ?? ""));
|
||||
$client_type = trim(strip_tags($_POST["client_type"] ?? ""));
|
||||
|
||||
if (empty($name) || empty($phone)) {
|
||||
echo json_encode(["status" => "error", "message" => "Имя и телефон обязательны"]);
|
||||
@@ -24,6 +25,7 @@ $message = "📩 Новая заявка из всплывающего окна\
|
||||
$message .= "Имя: $name\n";
|
||||
$message .= "Телефон: $phone\n";
|
||||
$message .= "Email: $email\n\n";
|
||||
$message .= "Тип клиента: $client_type\n\n";
|
||||
$message .= "Дата: " . date('d.m.Y H:i:s') . "\n";
|
||||
|
||||
$headers = "From: no-reply@olimparena.aiconversion.ru\r\n";
|
||||
|
||||
Reference in New Issue
Block a user