asp实现用户登录,网页加密(不用数据库)

作者: 小古 分类: 网站技术 发布时间: 2011-4-24 ė8254 次浏览 60 条评论

asp简单认证

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
if request.Form("username")="用户名" then
if request.Form("password")="密码(密码不能用中文)" then
response.Redirect("加密网页网址")
end if
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<p>用户名:<input type="text" name="username" id="username" /></p>
<p>密 码:<input type="password" name="password" id="password" /></p>
<p><input type="submit" name="button" id="button" value="登录" /></p>
</form>
</body>
</html>

本文出自 小古Blog,转载时请注明出处及相应链接。

本文永久链接: http://blog.chdz1.com/?post=73

0 ASP
|

发表评论:

电子邮件地址不会被公开。 必填项已用*标注

Ɣ回顶部
sitemap