<?php
	header('Content-type: text/html; charset=utf-8');
	$login = $_REQUEST['username'];
	$pass = $_REQUEST['pass'];
	echo "$login $pass $bool";
	if (($login == "user1") and ($pass == "123")) {
		header('Location: /1.php');
	}
?>
<html>
<head>
<meta charset = "UTF-8" />
</head>
<body>
<form action="index.php" method="post">
    login:  <input type="text" name="username" /><br />
    Pass: <input type="text" name="pass" /><br />
    <input type="submit" name="submit" value="Отправь меня!" />
</form>
<?php echo "$bool"; ?>
</body>
</html>