Advertisement
bokunda

[PHP] Kao login

Oct 5th, 2017
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  1. <html>    
  2.     <head></head>
  3.     <body>      
  4.         <div id="forma">            
  5.             <form  action="<?php echo $_SERVER['PHP_SELF'];  ?> " method="post">
  6.                 Username: <input type="text" name="korime">
  7.                 Password: <input type="password" name="sifra">
  8.                 <input type="submit" name="dugme" value="Posalji">
  9.             </form>
  10.         </div>
  11.  
  12.         <?php      
  13.             if(isset($_POST['dugme']))
  14.             {
  15.                 $korime = $_POST['korime'];
  16.                 $pass = $_POST['sifra'];
  17.                 echo "$korime, dobrodošli na forum.<br>Vaša lozinka je: <i>$pass</i>!";
  18.                 echo "<script>document.getElementById('forma').style.display = 'none';</script>";
  19.             }    
  20.         ?>      
  21.     </body>    
  22. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement