Advertisement
Guest User

Untitled

a guest
Feb 16th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. <html>
  2. <body>
  3. <?php
  4. //Check whether the session variable SESS_MEMBER_ID is present or not
  5. echo($_POST['username']);
  6. echo($_POST['password']);
  7.  
  8. session_start();
  9.  
  10.  
  11. if(!isset($_SESSION['sess_username']) || (trim($_SESSION['sess_username']) == '')|| (!isset($_SESSION['sess_password']) )|| (trim($_SESSION['sess_password']) == '')) {
  12.   header("location: login.html");
  13.   exit();
  14. }
  15.  
  16.  
  17.  
  18. $username = $_POST['username'];
  19. $password = $_POST['password']; 
  20. echo($username);
  21. echo($password);
  22.  
  23. ?>
  24.  
  25. </body>
  26. </html>
  27.  
  28. /*
  29. Error
  30.  
  31.  
  32. [17-Feb-2017 01:12:18 Europe/Berlin] PHP Parse error:  syntax error, unexpected 'echo' (T_ECHO) in /Applications/MAMP/htdocs/login.php on line 20
  33. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement