Показать сообщение отдельно

  #2  
Старый 08.02.2007, 15:52
InferNo23
Участник форума
Регистрация: 05.09.2006
Сообщений: 187
Провел на форуме:
6860213

Репутация: 378
По умолчанию

PHP код:
<html><title>Mail Sender</title><style>body{
background-color:#2B2F34;color:#C1C1C7;}input{color:#cccccc;
border:1px solid #404040;background-color:#221;
}</style>
<b><pre><form method="post" >
Кому:<br><input type="text" name="to" ></br>
От:<br><input type="text" name="ot" ></br>
Тема:<br><input type="text" name="subj" ></br>
Текст:<br><textarea name="content"></textarea></br>
<input type="submit" value="Отправить" ></form></b></pre></html>
<?php
set_time_limit
(0);
ignore_user_abort(1);
$logi "0";
$filelog "mail_log.txt";
$to $_POST["to"];
$subj $_POST["subj"];
$content $_POST["content"];
$ot $_POST["ot"];
if(isset(
$to) && isset($subj) && isset($content) && isset($ot))
mail($to$subj$content"From: ".$ot);
} if(
$logi =="1"){
if(isset(
$to) && isset($subj) && isset($content)){
$xyu fopen($filelog"a");
fwrite($xyu"Кому: ".$to." От: ".$ot." Тема: ".$subj." Сообщение: ".$content."\n");
fclose($xyu);
}}
?>
без штмл, время дописать пока нет..