% If Request.QueryString("step") = "2" THEN 'Rimuovo l'username e la password da caratteri illegali come per esempio '. str_username = Replace(Request.Form("username"), "'", "''") str_password = Replace(Request.Form("password"), "'", "''") Set rs_login = Server.CreateObject ("ADODB.RecordSet") strSQL = "SELECT * FROM tbl_authors WHERE name='" & str_username & "' AND pass='" & str_password & "'" rs_login.open strSQL,adoCon 'Se la combinazione username e password non esiste, reindirizzo l'utente ad un altra pagina If rs_login.EOF _ Or rs_login.BOF Then Response.Redirect("http://www.progettoproservice.it/registrazione/login_errato.asp") Else 'Scrivo l'user code nel cookie Response.Cookies("Login")("userCode") = rs_login("code") 'Reindirizzo alla pagina appropriata If str_username = "admin" OR str_username = "ramellimauro" OR str_username = "cristina" OR str_username = "marioruv" OR str_username = "crizaino" Then Response.Redirect("default.asp") Else Response.redirect("http://www.progettoproservice.it/servizi.progettoproservice.it/home.html") End If End If End if %>
![]() |
|
|
|
|
Questa è un'area riservata, per loggarti inserisci la password |
||
Copyright © Professional Service Srl - P.IVA 09431061002 - Tel. 06 5413644- info@progettoproservice.it