1<?php
2$user = $_POST['user'];
3$pass = $_POST['pass'];
4
5if($user == "admin"
6&& $pass == "admin")
7{
8 include("secure.html");
9}
10else
11{
12 if(isset($_POST))
13 {?>
14
15 <form method="POST" action="secure.php">
16 User <input type="text" name="user"></input><br/>
17 Pass <input type="password" name="pass"></input><br/>
18 <input type="submit" name="submit" value="Go"></input>
19 </form>
20 <?}
21}
22?>
23