05_01.asp

来自「ASPTest 网络基础网页设计」· ASP 代码 · 共 24 行

ASP
24
字号
<html>
<head>
<title>cookie应用实例</title>
</head>
<body>
<% 
Dim strID
Dim strPWD
strID = Request.Cookies("userID")
strPWD = Request.Cookies("userPWD")
%>   
<form method="POST" action="05_02.asp">
  请输入用户ID:&nbsp;
  <input type="text" name="txtID" 
  <% If Len(strID) > 0 Then Response.Write "value=" & strID %> 
  size="20"></p>
  <p>
  请输入用户密码:<input type="password" 
  <% If Len(strPWD) > 0 Then Response.Write "value=" & strPWD %> 
  name="txtPWD" size="20"></p>
  <p><input type="submit" value="确认" name="btnSubmit"> </p>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?