<%
password="ycjan" '登陆密码修改处
flag=Trim(Request.QueryString("flag"))
if flag="0" then
if Trim(Request.Form("user"))=password then
response.Cookies("login")="ycjan" 'ycjan 为 Cookies 名
end if
end if
user=request.Cookies("login")
id=Trim(Request.QueryString("id"))
if user="" then
Response.Write("<form name=""myform"" action=""?flag=0"" method=""post""><table width=""500"" height=""300"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0""><tr><td align=""center"">请输入密码(ycjan):<input name=""user"" type=""password"" id=""user""><input type=""submit"" name=""Submit"" value="" 确 定 ""></td></tr></table></form>")
response.End()
else
Response.Write("登陆成功") '登陆成功进行相应操作
end if
%>
<%
password="ycjan" '登陆密码修改处
url=request("url")
flag=Trim(Request.QueryString("flag"))
if flag="0" then
if Trim(Request.Form("user"))=password then
response.Cookies("login")="ycjan" 'ycjan 为 Cookies 名
end if
end if
user=request.Cookies("login")
id=Trim(Request.QueryString("id"))
if user="" then
Response.Write("<form name=""myform"" action=""?flag=0&url="+url+""" method=""post""><table width=""500"" height=""300"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0""><tr><td align=""center"">请输入密码:<input name=""user"" type=""password"" id=""user""><input type=""submit"" name=""Submit"" value="" 确 定 ""></td></tr></table></form>")
response.End()
else
response.redirect "http://www.baidu.com/img/"+url
'Response.Write("登陆成功") '登陆成功进行相应操作
end if
%>
原创文章如转载,请注明:转载自 阳春一月 [ http://blog.ycjan.com/ ]
本文链接地址:http://blog.ycjan.com/asp/20090523340.html