protect.aspxml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /??
<html>
<head>
<title>Ã¥ÂÂè±é£ÂèÂÂä¹ÂæÂ¥é£Â精彩</title>
</head>
<body bgcolor=”#00FFFF”>
<form action=”Protect.asp” method=”post”>
‘ 精彩çÂÂè¦ÂéÂÂå¶çÂÂ页é¢.
<input type=”text” name=”text”>
‘ æ¤å¤Âå¯注æÂÂ该页é¢çÂÂå ¶å®Âå 容.
å§ÂÃ¥ÂÂ:
<input type=”password” size=”20″ name=”password”>
å£令:
<input type=”submit” name=”B1″ value=”æ¥询“></p></form>
<%set conn=server.createobject(“adodb.connection”)
conn.open “asptest”
‘ asptestæ¯åÂÂæ¾客æ·信æ¯çÂÂ表åÂÂpermissionæÂÂå¨çÂÂæ°æ®åºÂçÂÂÃ¥ÂÂÃ¥ÂÂ.
sql1=”select î from permission where xm='”&&request.form(“text”) && “‘ and mima='”&&request.form (“password”)&&”‘”
set rs=conn.execute(sql1)%>
<% if not rs.eof then%><a href=”jingcai.asp”>æÂ¥é£Â精彩</a>
‘ å¦ÂæÂÂæ°æ®åºÂä¸ÂÃ¥ÂÂå¨ç¨æ·è¾Âå ¥çÂÂå§ÂÃ¥ÂÂÃ¥ÂÂå£令,Ã¥ÂÂæ¾示页é¢jingcai.aspçÂÂé¾æÂÂ¥.
<%end if%>
</body></html>
ÃÂ
[1]