- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1251">
<title>гЮОХЯМЮЪ ЙМХФЙЮ</title>
</HEAD>
<BODY bgcolor="#FFFFE0">
<font face="Verdana" size=-1>
<h3 align=center>Записная книжка</h3>
<table align=center width=200>
<p>Введите текст</p>
<form method=post name="notebook" action="notebook.php">
<textarea cols="30" rows="7" name="message"></textarea><br><br>
<input type="submit" value="Написать">
</form>
<?php
if (isset($_POST['message']) && !empty($_POST['message']))
{
$date = date("Y-m-d H:i:s");
$s = $date ."<br>" .$_POST['message'] ."<hr>\r\n" ;
$f = @fopen("notes.txt","a+") ;
fwrite($f,$s) ;
fclose($f) ;
}
include("notes.txt");
?>
</table>
</font>
</BODY>
guest 21.05.2009 15:47 # 0