Guest User

index.php

a guest
Mar 20th, 2016
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. <?php
  2. include('login.php'); // Memasuk-kan skrip Login
  3.  
  4. if(isset($_SESSION['login_user'])){
  5. header("location: profile.php");
  6. }
  7. ?>
  8.  
  9. <!DOCTYPE html>
  10. <html>
  11. <head>
  12. <title>Login</title>
  13.  
  14. <!-- Skrip CSS -->
  15. <link rel="stylesheet" href="login_style.css"/>
  16.  
  17. </head>
  18. <body>
  19. <div class="container">
  20. <div class="main">
  21. <form action="" method="post">
  22. <h2>Admin Login</h2><hr/>
  23.  
  24. <label>Username :</label>
  25. <input id="name" name="username" placeholder="username" type="text">
  26.  
  27. <label>Password :</label>
  28. <input id="password" name="password" placeholder="**********" type="password">
  29.  
  30. <input type="submit" name="submit" id="submit" value="Login">
  31. </form>
  32. </div>
  33. </div>
  34.  
  35. </body>
  36.  
  37.  
  38. </html>
Add Comment
Please, Sign In to add comment