Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include('mobdec.php');
- include('login.php'); // Includes Login Script
- if(isset($_SESSION['login_user'])){
- header("location: profile.php");
- }
- ?><!DOCTYPE html>
- <html lang="pl">
- <head>
- <title>Login Form in PHP with Session</title>
- <meta charset="utf-8">
- <link href="style.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <div id="main">
- <h1>Strona z użyciem PHP</h1>
- <div id="login">
- <h2>Logowanie</h2>
- <form method="post">
- <label>UserName :</label>
- <input id="name" name="username" placeholder="username" type="text">
- <label>Password :</label>
- <input id="password" name="password" placeholder="**********" type="password">
- <input name="submit" type="submit" value=" Login ">
- <span><?php echo $error; ?></span>
- </form>
- </div>
- <div id="napisDol">
- <a href="http://validator.w3.org/check?uri=referer">walidacjaHTML</a>
- <a href="http://jigsaw.w3.org/css-validator/check/referer">walidacja CSS</a>
- <a href="">kod źródłowy</a>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement