CODE (htmlphp):
скопировать код в буфер обмена
скопировать код в буфер обмена
- <form action="index.php" method="POST">
- <input name="numcas">
- <input type="submit" onclick="send()" value="Отправить на почту">
- </form>
- <?
- if(isset($_POST['submit'])){
- $message = $_POST['numcas'];
- $to = "...@bk.ru";
- $from = "center.org";
- mail($to, $pagetitle, $message, "Content-type: text/plain; charset=\"utf-8\"\n From: $to");
- }
- ?>