以下是一个简单的HTML代码示例,演示如何实现分身份登录(用户登录和管理员登录)

发布时间 2023-10-19 23:43:08作者: STDU_DREAM

<!DOCTYPE html>
<html>
<head>
<title>分身份登录</title>
</head>
<body>
<h2>用户登录</h2>
<form action="user_login.php" method="post">
<label for="user_username">用户名:</label>
<input type="text" id="user_username" name="user_username" required><br><br>

<label for="user_password">密码:</label>
<input type="password" id="user_password" name="user_password" required><br><br>

<input type="submit" value="用户登录">
</form>

<h2>管理员登录</h2>
<form action="admin_login.php" method="post">
<label for="admin_username">用户名:</label>
<input type="text" id="admin_username" name="admin_username" required><br><br>

<label for="admin_password">密码:</label>
<input type="password" id="admin_password" name="admin_password" required><br><br>

<input type="submit" value="管理员登录">
</form>
</body>
</html>