
20.01.2006, 11:29
|
|
наркоман с медалью
Регистрация: 07.05.2005
Сообщений: 3,704
С нами:
11058146
Репутация:
4536
|
|
PHP код:
<form method="POST" action="fm.php?Act=send">
<p>
Мыло отправителя<input type="text" name="frommail" size="20">
<br>
Ответ<input type="text" name="repl" size="20">
<br>
Тема<input type="text" name="theme" size="20">
<br>
Кому шлем<input type="text" name="tomail" size="20">
<br>
Текст сообщения<textarea rows="10" name="text" cols="30"></textarea>
<br>
<input type="submit" value="Отправить" name=""><input type="reset" value="Сброс" name="">
</p>
</form>
<?php
if (@$Act == "send")
{
mail($tomail, $theme, $text, "From: $frommail\nReply-To: $repl\nContent-Type: text/plain; charset=windows-1251\nContent-Transfer-Encoding: 8bit");
echo "<script>alert('Отправлено')</script>";
}
?>
|
|
|