Advertisement
guitarman0831

Untitled

Jun 11th, 2011
822
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.69 KB | None | 0 0
  1. <?php
  2.     session_start();
  3.    
  4.     $username = NULL;
  5.     $password = NULL;
  6.    
  7.     if(isset($_SESSION['username'])){
  8.         $username = $_COOKIE['username'];
  9.         $password = $_COOKIE['password'];
  10.     }
  11. ?>
  12. <html>
  13. <title>Login</title>
  14. <body bgcolor='#000000'>
  15.         <font color="white">
  16.     <H2><div align='center'>Login</div></H2>
  17.     <form align='center' action='login.php' method='POST'>
  18.         Username: <input type='text' name='username' value='<?$_COOKIE['username']?>'><br \>
  19.         Password: <input type='password' name='password' value='<?$password?>'><br \>
  20.         Remember Me <input type='checkbox' name='remember' value='rememberme'><br \>
  21.         <input type='submit' value='Login'>
  22.     </form>
  23.         </font>
  24. </body>
  25. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement