大家帮帮我呀,再做不出来,老板说要吵了我,可是我真的不会,我又没学过这个,我每天都在网上找这方面的教程,也只是胡里胡涂的了解了个大概。下面的是会员登陆页面的代码,是dw自动生成的,请帮我看看还要加什么才能达到上面的要求。
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Request.QueryString
MM_valUsername=CStr(Request.Form("textfield"))
If MM_valUsername <> "" Then
MM_fldUserAuthorization=""
MM_redirectLoginSuccess="lod2.asp"
MM_redirectLoginFailed="sorry.htm"
MM_flag="ADODB.Recordset"
set MM_rsUser = Server.CreateObject(MM_flag)
MM_rsUser.ActiveConnection = MM_news_STRING
MM_rsUser.Source = "SELECT 用户名, 密码"
If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
MM_rsUser.Source = MM_rsUser.Source & " FROM huiyuan WHERE 用户名='" & Replace(MM_valUsername,"'","''") &"' AND 密码='" & Replace(Request.Form("textfield2"),"'","''") & "'"
MM_rsUser.CursorType = 0
MM_rsUser.CursorLocation = 2
MM_rsUser.LockType = 3
MM_rsUser.Open
If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then
' username and password match - this is a valid user
Session("MM_Username") = MM_valUsername
If (MM_fldUserAuthorization <> "") Then
Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).value)
Else
Session("MM_UserAuthorization") = ""
End If
if CStr(Request.QueryString("accessdenied")) <> "" And false Then
MM_redirectLoginSuccess = Request.QueryString("accessdenied")
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginSuccess)
End If
MM_rsUser.Close
Response.Redirect(MM_redirectLoginFailed)
End If
%>
无标题文档这是成功进入后的页面的代码,这张页面的要求是,1、当某某成功登陆后可以显示欢迎某某进入,2、可以管理个人资料,不是直接显示出来,而是通过点击某个连接才显示出相应的记录。有点和论坛差不多的那种,这张页面我不知道该怎么做,请帮我看看。代码如下:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
无标题文档