effettuare un login
spiego: così funziona
dove permesso corrisponde al permesso giusto per entrare nella paginacodice:<% ' *** Restrict Access To Page: Grant or deny access to this page MM_authorizedUsers="PERMESSO" MM_authFailedURL="login.asp" MM_grantAccess=false If Session("MM_Username") <> "" Then If (false Or CStr(Session("MM_UserAuthorization"))="") Or _ (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then MM_grantAccess = true End If End If If Not MM_grantAccess Then MM_qsChar = "?" If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&" MM_referrer = Request.ServerVariables("URL") if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString() MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer) Response.Redirect(MM_authFailedURL) End If %>
se però a permesso volessi sostituire il campo di un recordset presente nella pagina posso farlo? Se si come?
Secondo me è un problema di sintassi... non so come scriverlo...
così è sbagliatocodice:<% MM_authorizedUsers="(Recordset1.Fields.Item("PERMESSO").Value)" %>

Rispondi quotando