Advertisement
Guest User

Untitled

a guest
Jan 7th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. <html>
  2. <head>
  3. <meta charset="utf-8">
  4. <title>Log in</title>
  5. </head>  
  6. <body>
  7.    
  8. <?php
  9.     if(isset($POST['submitgumb'])){
  10.         $username = $_POST['uname'];
  11.         $password = $_POST['pass'];
  12.        
  13.         if($username=='kapica' && $password=='volk'){
  14.             echo "<p style='color: green'>Pravilno geslo</p>";
  15.         }
  16.         else{
  17.             echo "<p style='color: red'>Narobno geslo</p>";
  18.         }
  19.     }
  20.    
  21. ?>
  22.    
  23. <form method="post">
  24.     <input placeholder ="username" type="text" name="uname"><br>
  25.     <input placeholder ="password" type="password" name="pass"><br>
  26.     <button type="submit" name="submitgumb">Prijavi se</button>
  27. </form>
  28.  
  29.  
  30. </body>  
  31. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement