<?php
// include_once '../include/user_functions.php';
if(isset($_POST['btn'])){
$data=$_POST['frm'];
// user_login($data);
var_dump($_POST['frm']);
}
?>
<!DOCTYPE html>
<html lang="fa">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Mosaddek">
<meta name="keyword" content="FlatLab, Dashboard, Bootstrap, Admin, Template, Theme, Responsive, Fluid, Retina">
<link rel="shortcut icon" href="img/favicon.html">
<title>FlatLab - Flat & Responsive Bootstrap Admin Template</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-reset.css" rel="stylesheet">
<link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
<link href="css/style.css" rel="stylesheet">
<link href="css/style-responsive.css" rel="stylesheet" />
</head>
<body class="login-body">
<div class="container">
<form class="form-signin" action="" method="post">
<h2 class="form-signin-heading">login now</h2>
<div class="login-wrap">
<input type="text" class="form-control" placeholder="username" name="frm[username]"autofocus>
<input type="password" class="form-control" name="frm[password]" placeholder="password">
<label class="checkbox">
<input type="checkbox" value="remember-me">remember me
<span class="pull-right"> <a href="#"> forget password?</a></span>
</label>
<button class="btn btn-lg btn-login btn-block" value="btn-button" name="btn" >login</button>
</div>
</form>
</div>
</body>
</html>
When i change form method to get that works fine.
When I change
if(isset($_POST['btn']))
tovardump($_POST)
it returnarray(0) { }
all the time.I run php on xampp
upload_max_filesize=130M post_max_size=130M
any additional information needed?