Tại sao 2 cái input text của mình nó lại tự có giá trị user là root và pass là ****** thế ạ.
Đây là file index.php
define("IN_SITE", true);
$module = isset($_GET['m']) ? $_GET['m'] : '';
$action = isset($_GET['a']) ? $_GET['a'] : '';
$path = 'modules/'.$module . '/' . $action . '.php';
if (file_exists($path)) {
include_once ($path);
}
else {
include_once ('modules/common/404.php');
}
Đây là file login.php
<!DOCTYPE html>
<html>
<body>
<form method="post" action="">
<table>
<tr>
<td>Username</td>
<td><input type="text" name="username" value=""/></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="password" value=""/></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="login-btn" value="Đăng nhập"/></td>
</tr>
</table>
</form>
</body>
</html>

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?