<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Home Login</title>
</head>
<body>
<h1>Welcome to Home Login Page</h1>
<form action="/login" method="POST">
<label for="username">Username:</label><br>
<input type="text" id="username" name="username"><br>
<label for="password">Password:</label><br>
<input type="password" id="password" name="password"><br><br>
<input type="submit" value="Login">
</form>
</body>
</html>
action 属性设置为 /login,表示当用户点击“Login”按钮时,表单数据将通过 POST 方法提交到服务器的 /login 路径进行处理。上一篇:html输入框
下一篇:文本转html
Laravel PHP 深圳智简公司。版权所有©2023-2043 LaravelPHP 粤ICP备2021048745号-3
Laravel 中文站