Guest User

Untitled

a guest
Jan 21st, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. <?php
  2.  
  3. require('./global.php');
  4.  
  5.  
  6. $title = "Login";
  7. $error = "";
  8. $template->vars(array(
  9.         'TITLE' => $title,
  10.     'ERROR' => $error,
  11. ));
  12.  
  13. if(isset($_POST['login'])) {
  14.     $username = $_POST['username'];
  15.     $password = $_POST['password'];
  16.    
  17.     if(trim($username) == "" or trim($password) == "") {
  18.         $error = "<b>Error:</b> You have an error.";
  19.     }
  20. }
  21.  
  22. $template->display('Login page', 'login_body.html', '');
Add Comment
Please, Sign In to add comment