Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <?php
- //Check whether the session variable SESS_MEMBER_ID is present or not
- echo($_POST['username']);
- echo($_POST['password']);
- session_start();
- if(!isset($_SESSION['sess_username']) || (trim($_SESSION['sess_username']) == '')|| (!isset($_SESSION['sess_password']) )|| (trim($_SESSION['sess_password']) == '')) {
- header("location: login.html");
- exit();
- }
- $username = $_POST['username'];
- $password = $_POST['password'];
- echo($username);
- echo($password);
- ?>
- </body>
- </html>
- /*
- Error
- [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
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement