把以下代码加入验证页:
<%if Trim(Cstr(request.QueryString("check")))="true" then ‘用来判断是否有选择记住密码
Response.Cookies("UserCookie")("username") = Trim(Cstr(request.Form("username")))
Response.Cookies("UserCookie")("passwords") = trim(request.Form("passwords"))
Response.Cookies("UserCookie").Path = "/login.asp"
Response.Cookies("UserCookie").Expires= DateAdd("y",1,Now())
end if%>
//这段代码是用来判断是否有选择记住密码,同时也发送一个判断字段给后台
<script type="text/JavaScript">
function check()
{if(document.getElementById("checkBox").checked)
alert(document.getElementById("checkBox").checked)
document.getElementById("ddd").action=’check.asp?id=user&check=’+document.getElementById("checkBox").checked;}
</script>
<%
strUsername=Request.Cookies("UserCookie")("username")
strPassword=Request.Cookies("UserCookie")("passwords")
%>
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。