I wrote this form in index.php :
<form action="login.php" method="POST"> <input type="text" name="login" /><br /> <input type="password" name="pass" /><br /> <input type="submit" name="submit" value="кнопка" /> </form>
and here is the code in login.php :
<?php if ($_POST['pass']=="123" and $_POST['login']=="admin") { ..если пасс робит } else { ..если пасс неверен } ?>
But I get some kind of mistake. Why? Write what is wrong.