if (empty($_POST['user_name']) || empty($_POST['user_password'])) { $blank = 'Please fill both fileds'; } else { $obj = new inject_record(); $result = $obj->login(); if ($result == TRUE) { $error = TRUE; } } } if (isset($_GET['login'])) { $login = TRUE; } if (isset($_GET['logout'])) { $obj = new inject_record(); $result = $obj->logout(); if ($result == TRUE) { $msg = TRUE; } } ?> <!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <title>Log in</title> <?php