2016-04-20 12 views

ответ

1

Попробуйте добавить это к этому ..

<?php 
     session_start(); //Transfer the session_start() here .. 
     require("api/api.php"); 
     if(isset($_POST['username'])) 
     { 
      if(login($_POST['username'], $_POST['password'])) 
      { 
       $_SESSION['username'] = $_POST['username']; 
      } 
      else 
      { 
       echo 'Invalid username/password'; 
      } 
     } 
     require("header.php"); 
?> 
Смежные вопросы