Guest User

Untitled

a guest
Dec 5th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1.  
  2.  
  3.  
  4. <div id="wrapper">
  5.     <h2>Logga in</h2>
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13. </div>
  14.  
  15.  
  16. <?php
  17.  
  18.     if(!isset($_SESSION['uid'])) {
  19.             echo "<form action='login_parse.php' method='post'>
  20.  
  21.             Username: <input type='text' name='username' /> &nbsp;
  22.             Password: <input type='password' name='password' />&nbsp;
  23.            
  24.             <input type='submit' name='submit' value='Log in' />";}
  25.     else {
  26.             echo "<p> Du är inloggad som ".$_SESSION['username']. "&bull:
  27.             <a href='logout_parse.php'>Logout</a>";
  28.         }
  29.  
  30.  
  31. ?>
Add Comment
Please, Sign In to add comment