阿七
级别: 未验证会员
精华:
0
发帖: 909
威望: 0 点
金钱: 2161 RMB
贡献值: 0 点
在线时间:512(小时)
注册时间:2006-03-29
最后登录:2008-08-07
|
一个简单的用户登录接口asp实现
一个简单的用户登录接口asp实现 OA1uY83" 出处 KnQ*vM*VM py!|\00} <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> )gIKH{JYL $E~`\o%Ev <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> cWaSn7p !X g"DG]/ev <html xmlns="http://www.w3.org/1999/xhtml"> 0/MtYIYk /GN<\_o=q <head> g`' !HGY 9gDkT
Ykj <script language="javascript" type="text/javascript"> I<mV+ex `l
^9/_g'6 <!-- ,{u
yG: @ $ ;q; function SaveCookie() Lv;^My i Dp)FQ$ { t7Iv?5]N N=5a54
!/ document.cookie = "name=" + document.getElementById("name").value l'-Bu( %~H-)_d20 + "expires=01-Jan-2008 23:59:59";//此处可根据需要自行修改 kW Ml DrUO- document.cookie = "pass=" + document.getElementById("pass").value ;~)5s' fP
1[[3i + "expires=01-Jan-2008 23:59:59";//此处可根据需要自行修改 ;>EM[u S"bg9o } a
od-3"7[ )hn6sXo+ --> +ZaSM~ T= y}y </script> Q^9_'t}X Ct <udO p?%y82E qdJ=lhHM} <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> +aCv&sg 2+N]PW\V <title>[Request samples]</title> WtsFz*`)y ~]IOK$1F% </head> >-RQ]?^ Af~$TyX <body> iJ)_RSFK Fh&G;aEq <% d=$Mim 7FP*oN? username = Request.Cookies("name") !3c
\NbU }1L4"}L. password = Request.Cookies("pass") +5g_KS q"CVcLi9 '此处可以插入用户数据查询。并替换下面默认密码“admin” .ljnDL/ /Y:sLGQLD if username = "" or password <> "admin" then rQ{7j!Im 6##_%PO<m %> %vn"{3y>rF nY[WRt w p}}R-D&K Ea=8}6`s <form method="post"> =g7x'
kN gMi0FO' <table> <`8n^m* rK8lBy:< <tr> ].avItg h]5(]. <td>please input your name:</td> '0;l]/i. +)AG* <td><input type="text" name="name" id="name" /></td> ~gJwW+ ~p6 V,Q </tr> B6+khuG( d"1]4.c <tr> Ve$o}h- 8L=HW G!1 <td>please input password:</td> 93>jr<A kM l+yli3c <td><input type="password" name="pass" id="pass" /></td> '`[&}R
RF$eQzW </tr> 3Y4?CM&0v
[-1^-bb <tr> gT{Q#C2Baw 'T;P;:!\ <td><input type="submit" value="submit" onclick="SaveCookie()" /></td> [o#oak{U hg]]Ok~cAs <td><input type="reset" value="reset" /></td> bTNgjc PCee<W_%YE </tr> 8mrUotjS 1p3z1_wrs </table> ;6
D@A ~8Fk(E_ </form> %)8}X>xq 2DDtu[} <%else%> Zd%k*BC =U9*'EFr <h1>Welcome to ASP</h1> <?.&^|kS <8&au(I,vB <br /> 9d659iC 13=AW <p> %3-y[f BoWg0*5xb hello! <%=username%>.<br> `5.'_3 `p-cSxR_ there are <%=Request.TotalBytes%> bit.... :Yh+>c}N sf87$S0 </p> $k%
2J9O X`>i&I] <%end if%> "?xHlYj@+ ,!y$qVg'\f </body> ,m:.-iy? E,U+o $ </html>
|
|
[楼 主]
|
Posted: 2006-04-03 14:01 |
| |