daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Apr 29th, 2017 557 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $fio = $_POST['fio'];
  3. $email = $_POST['email'];
  4. $fio = htmlspecialchars($fio);
  5. $email = htmlspecialchars($email);
  6. $fio = urldecode($fio);
  7. $email = urldecode($email);
  8. $fio = trim($fio);
  9. $email = trim($email);
  10. //echo $fio;
  11. //echo "<br>";
  12. //echo $email;
  13. mail("feedich@mail.ru", "Заявка с сайта", "ФИО:".$fio.". E-mail: ".$email ,"From: example2@mail.ru \r\n");
  14.  
  15. if (mail("feedich@mail.ru", "Заявка с сайта", "ФИО:".$fio.". E-mail: ".$email ,"From: example2@mail.ru \r\n"))
  16.  {     echo "сообщение успешно отправлено";
  17. } else {
  18.     echo "при отправке сообщения возникли ошибки";
  19. }?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top