When i Click to submit - No reaction ! Help please ! PHP Form Not Work
I think error in form, please, check for first action and form connectedness
Login.php
<link rel="stylesheet" href="style.css">
<div class="frm">
    <form action="action.php" method="POST" class="log" id="log">
        <h4>Log In</h4>
        <label for="loginl"> Username: </label>
        <input type="login" name="loginl" id="login">
        <label for="password"> Password: </label>
        <input type="password" name="password" id="password">
        <label for="password"> Mail: </label>
        <input type="mail" name="mail" id="mail">
        <input type="button" value="Submit" id="button">
    </form>
</div>
Action.php
<?php
    $loginl = $_POST["loginl"];
    $password = $_POST["password"];
    $mail = $_POST["mail"];
    $text = $_POST["text"];
    $loginl = stripcslashes($loginl);
    $password = stripcslashes($password);
    $mail = stripcslashes($mail);
    $text = stripcslashes($text);
    $loginl = mysql_real_escape_string($loginl);
    $password = mysql_real_escape_string($password);
    $mail = mysql_real_escape_string($mail);
    $text = mysql_real_escape_string($text);
    $db = mysql_connect("localhost", "root", "usbw", "armus");
    mysql_set_charset($db, "utf8");
    $result = mysql_query("SELECT * from users where loginl = '$loginl' and password = '$password' and mail = '$mail'") or die("Failed to query database ".mysql_error());
    $row = mysql_fetch_array($result);
    if ($row['loginl'] == $loginl && $row["password"] == $password && $row["mail"] == $mail){
        echo "Login Success!!! Welcome ". $row['text'] ;
    } else {
        echo "failed to login!";
    }
?>
output - NO RESULT
My PHP version - 5.4.17
where is my mistake?
 
    