📄 例5-2.txt
字号:
<html>
<body>
<h2 align="center">用户登录</h2>
<hr>
<form action="5-2.asp" method="post">
<p>用户名:<input type="text" size="10" name="name"></p>
<p>密码:<input type="password" size="8" name="pass"></p>
<p><input type="submit" name="b1" value="提交"></p>
</form>
</body>
</html>
------------------------------------------------------------
<html>
<body>
<center><h2>
<p>你输入的用户名是:<%=Request.Form("name")%></p>
<p>你输入的密码是:<%=Request("pass")%></p>
<%if Request("pass")="12345" then '验证密码是否为12345
Response.Write "密码正确!"
else
Response.Write "密码不正确!"
end if %>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -