Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/19/2015 in all areas

  1. First of all in on line 12 there is a blank line which should not be there. $ppwd = $_POST['sgp_pwd']; ?>//line 11// //line 12// <?php //line13// if (!empty($pusr) && !empty($ppwd)) { should be $ppwd = $_POST['sgp_pwd'];//removed the blank line and ?> and <?php if (!empty($pusr) && !empty($ppwd)) { because it would output a empty line which wouldn't allow the setcookie function in validate_login.php
    1 point
  2. In login.php remove the check_cookie() function as you are not using the output (BOOL) to check whether cookies are working or not. The problem is just that your output has started and you need to execute the function session_start and the setcookie() function before the output starts. ( Include those statements before any echo statement or before outputting any data to the user. )
    1 point
×
×
  • Create New...