
Untitled
By: a guest on
May 27th, 2012 | syntax:
None | size: 0.47 KB | hits: 14 | expires: Never
<?php session_start();
if($_SESSION['status'] == "password"){
echo "password";
}else if ($_SESSION['status'] == "username"){
echo "username";
}else if($_SESSION['status'] == "in"){
echo "logged in";
}
?>
<html>
<body>
<form action="login.php" method="post">
<p>Username: <input type="text" name="username" /> </p>
<p>password: <input type="password" name="password" /> </p>
<input type="submit" value = "log in!" />
</form>
</body>
</html>