阿七
级别: 未验证会员
精华:
0
发帖: 909
威望: 0 点
金钱: 2161 RMB
贡献值: 0 点
在线时间:512(小时)
注册时间:2006-03-29
最后登录:2008-08-07
|
一个简单的用户登录接口asp实现
一个简单的用户登录接口asp实现 AmQsay#I_ 出处 7I*rtc&Kb %-BwK <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> CAmIwAx6; m}]QP\ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
m-#]v}0A HBs
6:[q <html xmlns="http://www.w3.org/1999/xhtml"> sh
O4>Ha *1T~ruNqa <head> r%>EiHpCU ,XI=e= <script language="javascript" type="text/javascript"> gZ-:
4G|J Sy<io@df <!-- _ q
AT%. s>[Oe|` function SaveCookie() RRzLQ7J
ad9u;uS { ;bL?uL .y0u"@iF document.cookie = "name=" + document.getElementById("name").value >h~>7i(A /<dl"PWkJv + "expires=01-Jan-2008 23:59:59";//此处可根据需要自行修改 t{`-G*^ 9;rZ)QD document.cookie = "pass=" + document.getElementById("pass").value O2fFh_\ Y&y<WN}Q + "expires=01-Jan-2008 23:59:59";//此处可根据需要自行修改 YG)7+94 +ZV?yR2yn } 2z1r|?
l 1F+nWc2b --> Hq>rK` Ri}JM3\J </script> Tb*Q4:r" o=F!&]+ 'b+
Tio E~8J<gE <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> RLGIST` qQS&K%F <title>[Request samples]</title> }/g1 @v.?z2h </head> RhE|0N= d ;,C[& <body> (: mF+%( `[x'EJp# <% 0,iG9D7 K
n2W{*wD username = Request.Cookies("name") $us7fuKE 1W9uWkk_d password = Request.Cookies("pass") ^a#W|-: RVpo,;: '此处可以插入用户数据查询。并替换下面默认密码“admin” &@qB6!^ c{jTCkzq if username = "" or password <> "admin" then 0 Gq<APtr ^n\g, %> <,9rXjeRl ,~NJ}4wP p,\
(
j ZPHatC <form method="post"> G52z5-=v ~sCdvBA <table> *bi;mQ ZrWA,~; <tr> ,4(m.P10 QVD^p;b <td>please input your name:</td> o7yvXrpG(U `L.nj6F <td><input type="text" name="name" id="name" /></td> B>
zQ[e@t <ol?9tm </tr> ~B`H5# .L_ Hk <tr> M+L0 X$}NZ .3xf!E* <td>please input password:</td> ?lIh&C8]X T?D]]x <td><input type="password" name="pass" id="pass" /></td> vz)zl2F5sY #LG<o3An </tr> g=S|lVQm ;oRgg'k< <tr> SdJk
no <J^94-[CF <td><input type="submit" value="submit" onclick="SaveCookie()" /></td> (}CA?/ 05;J7T<
<td><input type="reset" value="reset" /></td> BNbz{tbX" (vbI4&r </tr> 4I;$a;R! {uiL91j. </table> Njs'v;-K nsi&r </form> c)17[9" N1'$;9 c <%else%> us^J!
s7 {7 nz:f <h1>Welcome to ASP</h1> $`Aps7A /U"3LX <br /> =2, iNn B%KfB
VC <p> ?rgtbiSW- 6"jV>CNc@ hello! <%=username%>.<br> :Pi=" mbO.Kyfen there are <%=Request.TotalBytes%> bit.... hdxq@%Vs etH]-S </p> Np R&`] YRJw,xl <%end if%> -{S:sK.o =BBDh`$R </body> Ea?u5$>gY"
:<`po4/ </html>
|
|
[楼 主]
|
Posted: 2006-04-03 14:01 |
| |