Advertisement
Guest User

Untitled

a guest
Dec 11th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <?php
  2. include('mobdec.php');
  3. include('login.php'); // Includes Login Script
  4.  
  5. if(isset($_SESSION['login_user'])){
  6. header("location: profile.php");
  7. }
  8. ?><!DOCTYPE html>
  9. <html lang="pl">
  10. <head>
  11. <title>Login Form in PHP with Session</title>
  12. <meta charset="utf-8">
  13. <link href="style.css" rel="stylesheet" type="text/css">
  14. </head>
  15. <body>
  16. <div id="main">
  17. <h1>Strona z użyciem PHP</h1>
  18. <div id="login">
  19. <h2>Logowanie</h2>
  20. <form method="post">
  21. <label>UserName :</label>
  22. <input id="name" name="username" placeholder="username" type="text">
  23. <label>Password :</label>
  24. <input id="password" name="password" placeholder="**********" type="password">
  25. <input name="submit" type="submit" value=" Login ">
  26. <span><?php echo $error; ?></span>
  27. </form>
  28. </div>
  29. <div id="napisDol">
  30. <a href="http://validator.w3.org/check?uri=referer">walidacjaHTML</a>
  31. <a href="http://jigsaw.w3.org/css-validator/check/referer">walidacja CSS</a>
  32. <a href="">kod źródłowy</a>
  33. </div>
  34. </div>
  35. </body>
  36. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement