24 lines
465 B
PHP
24 lines
465 B
PHP
|
<?php
|
||
|
$user = $_POST['user'];
|
||
|
$pass = $_POST['pass'];
|
||
|
|
||
|
if($user == "admin"
|
||
|
&& $pass == "soup")
|
||
|
{
|
||
|
include("create.php");
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
if(isset($_POST))
|
||
|
{
|
||
|
echo '
|
||
|
<form method="POST" action="login.php">
|
||
|
User <input type="text" name="user"></input><br/>
|
||
|
Pass <input type="password" name="pass"></input><br/>
|
||
|
<input type="submit" name="submit" value="Go"></input>
|
||
|
</form>
|
||
|
';
|
||
|
}
|
||
|
}
|
||
|
?>
|