Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <?php
  2. include ('login.php');
  3.  
  4. // Includes Login Script
  5.  
  6. if (isset($_SESSION['login_user']))
  7. {
  8. header("location: profile.php");
  9. }
  10.  
  11. ?>
  12. <!DOCTYPE html>
  13. <html>
  14. <head>
  15. <title>Login Form in PHP with Session</title>
  16. <link href="style.css" rel="stylesheet" type="text/css">
  17. </head>
  18. <body>
  19. <style>
  20. body {
  21. background-image: url('dud.jpg');
  22. }
  23. </style>
  24. <div id="main">
  25. <h1>Electronic Boiler Controller</h1>
  26. <div id="login">
  27. <h2>Login Form</h2>
  28. <form action="" method="post">
  29. <label>UserName :</label>
  30. <input id="name" name="username" placeholder="username" type="text">
  31. <label>Password :</label>
  32. <input id="password" name="password" placeholder="**********" type="password">
  33. <input name="submit" type="submit" value=" Login ">
  34. <span><?php echo $error; ?>
  35. </span>
  36. </form>
  37. </div>
  38. </div>
  39. </body>
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement