Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 27th, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php session_start();
  2.  
  3. if($_SESSION['status'] == "password"){
  4.     echo "password";
  5. }else if ($_SESSION['status'] == "username"){
  6.     echo "username";
  7. }else if($_SESSION['status'] == "in"){
  8.     echo "logged in";
  9. }
  10.  
  11. ?>
  12.  
  13. <html>
  14. <body>
  15.  
  16. <form action="login.php" method="post">
  17. <p>Username: <input type="text" name="username" /> </p>
  18. <p>password: <input type="password" name="password" /> </p>
  19. <input type="submit" value = "log in!" />
  20. </form>
  21.  
  22. </body>
  23. </html>