Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include ('login.php');
- // Includes Login Script
- if (isset($_SESSION['login_user']))
- {
- header("location: profile.php");
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>Login Form in PHP with Session</title>
- <link href="style.css" rel="stylesheet" type="text/css">
- </head>
- <body>
- <style>
- body {
- background-image: url('dud.jpg');
- }
- </style>
- <div id="main">
- <h1>Electronic Boiler Controller</h1>
- <div id="login">
- <h2>Login Form</h2>
- <form action="" 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>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement