send.php 574 B

12345678910111213141516
  1. <?php
  2. $name = $_POST["name"];
  3. $surname = $_POST["surname"];
  4. $email = $_POST["email"];
  5. $phone = $_POST["phone"];
  6. $message = $name . $surname . "оставил(а) заявку на сайте ". "Телефон для связи ". $phone;
  7. $to = "provalenkoludmila@gmail.com";
  8. $from = $email;
  9. $subject = "Заявка";
  10. $subject = "=?utf-8?B?".base64_encode($subject)."?=";
  11. $headers = "From: $from\r\nReply-to: $from\r\nContent-type: text/html; charset=utf-8\r\n";
  12. mail($to, $subject, $message, $headers);
  13. echo "<script>window.location.href = 'obychenie.php';</script>";
  14. ?>