codice:
<%
'Apri connessione che ometto
bolLog = true
bolAut = true
user = trim(request("user"))
password = trim(request("password"))
accessoX = trim(request("accessoX"))
strSQL="SELECT * FROM utentiAgenzie "
strSQL=strSQL &"WHERE password = '"& password &"' AND userID = '"& user &"'"
'Apri recordset che ometto....
if not rs.EOF then
if not rs("accessoX") = "accessoX" then
bolAut = false
end if
else
bolLog = false
end if
'Chiudi connessione e recordset
if bolAut then
response.redirect ("offerte.asp")
end if
if not bolLog then
response.redirect ("errorLogin.asp")
end if
if not bolAut then
response.redirect ("autorizzazione.asp")
end if
%>
Non ho controllato...
Roby