Guest User

Untitled

a guest
Aug 9th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. <html>
  2. <body>
  3. <center>
  4. <?php
  5. session_start();
  6.  
  7. $post=$_POST['post'];
  8. //$username = $_POST['username'];
  9. //$password = $_POST['password'];
  10. if ($post=1){
  11. $_SESSION['username']=$_POST['username'];
  12. $_SESSION['password']=$_POST['password'];
  13. }
  14.  
  15. include 'checklogin.php';
  16. if(check_login($_SESSION['username'],$_SESSION['password'])){
  17.  
  18. echo 'U kunt kiezen uit 3 mogelijkheden:<br><br>';
  19. echo '<form action="products.php" method="POST"><input type="submit" value="Product Catalog"></form>';
  20. echo ' ';
  21. echo '<form action="feedback.php" method="POST"><input type="submit" value="Feedback"></form>';
  22. echo ' ';
  23. echo '<form action="profile.php" method="POST"><input type="submit" value="Profile"></forum>';
  24. echo '<br><br><br><br>';
  25.  
  26.  
  27.  
  28.  
  29.  
  30. echo '<form method="link" action="session.php"><input type="submit" value="Log Off"></form>';
  31. }
  32. else{
  33. echo 'U bent niet ingelogd. <a href=index.php>Keer terug naar de startpagina.</a>';}
  34.  
  35. ?>
  36.  
  37. </center>
  38. </body>
  39. </html>
Add Comment
Please, Sign In to add comment