Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html>
- <head>
- <style>
- .error {color: #FF0000;}
- </style>
- </head>
- <body>
- <?php
- ini_set('session.gc_maxlifetime', 3*1);
- ?>
- <h2><center>Simple Wellness Login</center></h2>
- <center>
- <form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
- Username: <input type="text" name="username">
- <br><br>
- Password: <input type="text" name="pass" >
- <br><br>
- <input type="submit" name="submit" value="Submit">
- </form>
- </center>
- <?php
- if ($_SERVER["REQUEST_METHOD"] == "POST") {
- session_start();
- $_SESSION["login_time"] = time();
- if ( $_POST["pass"] == "password" ) {
- header( 'Location: login.php' ) ;
- }
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement