Guest User

Untitled

a guest
Jun 29th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.70 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4.         //This grabs the information that has been entered in the two text boxes
  5.         $username = $_POST ["username"];
  6.         $password = $_POST ["password"];
  7.        
  8.        
  9.         //Checks to see that the correct username and password has been entered
  10. if ($username == "test" AND $password == "pass")
  11.  
  12.         {
  13.                 //If test and pass has been entered the following information will be printed
  14.                
  15.                 print "Log in Successful.";
  16.         }Else
  17.         {
  18.                 //If test and pass has not been entered the following information will be printed
  19.                 print "Your Username and Password incorrect<br />\n";
  20.        
  21. }
  22.  
  23. ?>
Add Comment
Please, Sign In to add comment