Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form class="callback__form" action="send.php" method="post">
- <input type="text" name="urname" placeholder="Ваше имя.." required>
- <input type="text" name="urtel" placeholder="Ваш телефон.." required>
- <input type="submit" id="send-post" value="Вызвать мастера">
- </form>
- <?php
- $urname = $_POST['urname'];
- $urtel = $_POST['urtel'];
- $urname = htmlspecialchars($urname);
- $urtel = htmlspecialchars($urtel);
- $urname = urldecode($urname);
- $urtel = urldecode($urtel);
- mail("test@gmail.com", "Заявка", "Имя:".$urname.". Телефон: ".$urtel ,"From: test2@gmail.com rn");
- if (mail("test@gmail.com", "Заявка", "Имя:".$urname.". Телефон: ".$urtel ,"From: test2@gmail.com rn"))
- if ($mail == 1) {
- header("Location: /thanks.html");
- }
- ?>
Add Comment
Please, Sign In to add comment