Loginform doesn't work

Hi,

I expect to see ‘Ok’ or ‘You must supply a usename and a password’ but I do not see anything after submiting.

index.php


<?php
require 'core.inc.php';
require 'connect.inc.php';

include 'loginform.inc.php';

?>

core.inc.php


<?php
$current_file = $_SERVER['SCRIPT_NAME'];
?>

connect.inc


<?php
$mysql_host = 'localhost';
$mysql_user = 'root';
$mysql_pass = '';

$mysql_db = 'a_database';

if (!@mysql_connect($mysql_host, $mysql_user, $mysql_pass) || !@mysql_select_db($mysql_db)) {
    die(mysql_error());
}
?>

loginform.inc


<?php

if (isset($_POST['username']) && isset($_POST['password'])) {
    $username = $_POST['username'];
    $password = $_POST['password'];
    if (!empty($username) && !empty($password)) {
        echo 'Ok';
    }  else {
        echo 'You must supply a usename and a password';
    }
}

?>

<form action="<?php echo $current_file; ?>" metod="POST">
    Username: <input type="text" name="username" /> Password: <input type="password" name="password" />
    <input type="submit" value="Log in" />
</form>

Thank you.

I found this mistake: metod -> method.

The problem has been solved.