Код: Выделить всё
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1251'>
<title> C H E C K </title>
<style>
body, td, select, input, textarea {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
color: #000000;
}
</style></head>
<?php
// S E T T I N G S
$base_file = "base.dat";
//
Error_Reporting(E_ALL & ~E_NOTICE);
if ( (!isset($_POST['mod'])) && (!isset($_GET['mod'])) )
$mod = "start";
elseif (isset($_POST['mod']))
$mod = $_POST['mod'];
else
$mod = $_GET['mod'];
if ($mod == "start")
{
?>
<body>
<form name='form1' method='post' action='zakaz.php'>
<table width='40%' cellpadding='1' cellspacing='0' style='border: 1px solid #000000;'>
<tr>
<td width='40%'><div align='right'>Логин:</div></td>
<td><div align='center'>
<input name='login' type='text' id='login'>
</div></td>
</tr>
<tr>
<td width='40%'><div align='right'>Пасс:</div></td>
<td><div align='center'>
<input name='pass' type='text' id='pass'>
</div></td>
</tr>
<tr>
<td colspan='2'><div align='center'>
<input name='Enter' type='submit' id='Enter' value='Submit'>
<input type='hidden' name='mod' value='check'>
</div></td>
</tr>
</table>
</form>
<?php if (isset($error['mail'])) print "Error!"; ?>
</body>
<?php
}
elseif ($mod == "check")
{
if ((trim($_POST["login"]) == "") || (trim($_POST["login"]) == ""))
{
header( "Location: " . $_SERVER["SCRIPT_NAME"]);
$e_flag = true;
}
else