欢迎来到天天文库
浏览记录
ID:8538334
大小:25.80 KB
页数:13页
时间:2018-03-31
《asp会员注册登录以及管理系统网页实例(asp member registration and login and management system page example)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、asp会员注册登录以及管理系统网页实例(ASPmemberregistrationandloginandmanagementsystempageexample)Thispaperiscontributedbysy675859210Result.asp(Registrationjumpresults,whetherregisteredsuccessfully)Result.asp(Registrationjumpresults,whethertheregistrationissuccessful)"--#incl
2、ude!File="conn/db.inc.asp"
3、background-color:}#FFFFCC;
4、;nbsp;
<%'createRecordsetobjectmethod1setrst=Server.CreateObject("ADODB.recordset")rst.opense
5、lectfrom[user]whereu_user='"*"&;request.form("f_user")&";"',Conn,1,1ifrst.recordcount>0then'iffromintheusername,theusernameresponse.Write"&"("f_user");request.form "isalreadyinuse!Pleaseclickthebackbuttontoreturntothepreviouspage!"Rst.closesetrst=nothin
6、gconn.closesetconn=nothingresponse.Endelserst.closeconn.begintrans'opensthedatabasefunctionofrst.openselect*from[user],Conn1,3,userRSTrst.addnew'toinsertthedataintothetable("u_user")=request.Form("f_user")rst("u_code")=request.Form("f_code")rst.updaterst.clo
7、se'getjustinsertedautomaticnumberfielddatavalue,i.e.thevalueoftheu_idfieldSetrst1=conn.execute("SELECT@@IDENTITYASuid")uid=rst1("uid")rst.openinfo,Conn,1,3'setmyErrors=conn.errorsifstatementerrordetectionandanalysisofmyErrors.count>0thenfori=0tomyErrors.coun
8、t-1response.Write("error:"&myErrors.item(I);.Description&;)nextendif'errordetectionandanalysistheendoftheiferr.number<>0thenresponse.WriteERRobjectcaptureerror:"err.descriptionendifrst.addnew
此文档下载收益归作者所有