用户名始终为null,代码有什么问题
<?= Html::submitButton('Masuk', ['class' => 'btn btn-lg btn-info btn-shadow btn-block', 'name' => 'login-button']);
$username = isset($_POST["username"]);
$ip = $_SERVER['REMOTE_ADDR'];
$device = Funct::detectDevice();
$list = Funct::Loghistory($username,$ip,$device);
?>