<% ' FP_ASP ASP Automatically generated by a Frontpage Component. Do not Edit. On Error Resume Next Session("FP_OldCodePage") = Session.CodePage Session("FP_OldLCID") = Session.LCID Session.CodePage = 1252 Err.Clear strErrorUrl = "" If Request.ServerVariables("REQUEST_METHOD") = "POST" Then If Request.Form("VTI-GROUP") = "0" Then Err.Clear Set fp_conn = Server.CreateObject("ADODB.Connection") FP_DumpError strErrorUrl, "Cannot create connection" Set fp_rs = Server.CreateObject("ADODB.Recordset") FP_DumpError strErrorUrl, "Cannot create record set" fp_conn.Open Application("serviziaregistrazione_ConnectionString") FP_DumpError strErrorUrl, "Cannot open database" fp_rs.Open "Risultati", fp_conn, 1, 3, 2 ' adOpenKeySet, adLockOptimistic, adCmdTable FP_DumpError strErrorUrl, "Cannot open record set" fp_rs.AddNew FP_DumpError strErrorUrl, "Cannot add new record set to the database" Dim arFormFields0(10) Dim arFormDBFields0(10) Dim arFormValues0(10) arFormFields0(0) = "Codice" arFormDBFields0(0) = "Codice" arFormValues0(0) = Request("Codice") arFormFields0(1) = "Cellulare" arFormDBFields0(1) = "Cellulare" arFormValues0(1) = Request("Cellulare") arFormFields0(2) = "Dati_clienti" arFormDBFields0(2) = "Dati_clienti" arFormValues0(2) = Request("Dati_clienti") arFormFields0(3) = "Password" arFormDBFields0(3) = "Password" arFormValues0(3) = Request("Password") arFormFields0(4) = "Telefono" arFormDBFields0(4) = "Telefono" arFormValues0(4) = Request("Telefono") arFormFields0(5) = "Fax" arFormDBFields0(5) = "Fax" arFormValues0(5) = Request("Fax") arFormFields0(6) = "Servizio_richiesto" arFormDBFields0(6) = "Servizio_richiesto" arFormValues0(6) = Request("Servizio_richiesto") arFormFields0(7) = "Data" arFormDBFields0(7) = "Data" arFormValues0(7) = Request("Data") arFormFields0(8) = "Nome_utente" arFormDBFields0(8) = "Nome_utente" arFormValues0(8) = Request("Nome_utente") arFormFields0(9) = "E_Mail" arFormDBFields0(9) = "E_Mail" arFormValues0(9) = Request("E_Mail") FP_SaveFormFields fp_rs, arFormFields0, arFormDBFields0 If Request.ServerVariables("REMOTE_USER") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("REMOTE_USER"), "Nome_utente4" End If If Request.ServerVariables("REMOTE_HOST") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("REMOTE_HOST"), "Nome_computer_remoto" End If FP_SaveFieldToDB fp_rs, Now, "Data_e_ora" If Request.ServerVariables("HTTP_USER_AGENT") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("HTTP_USER_AGENT"), "Tipo_browser" End If fp_rs.Update FP_DumpError strErrorUrl, "Cannot update the database" fp_rs.Close fp_conn.Close Session("FP_SavedFields")=arFormFields0 Session("FP_SavedValues")=arFormValues0 Session.CodePage = Session("FP_OldCodePage") Session.LCID = Session("FP_OldLCID") Response.Redirect "confirm.asp" End If End If Session.CodePage = Session("FP_OldCodePage") Session.LCID = Session("FP_OldLCID") %> Risultati -- Nuovo Utenete regis
Modulo di invio

  <% dim connCW, rsCli, strNomeUtente, strPassword, strQuery %> <% strNomeUtente = Request.Cookies("nomeutente") %> <% strPassword = Request.Cookies("password") %> <% SET connCW = Server.CreateObject("ADODB.Connection") %> <% connCW.Open "Driver={Microsoft Access Driver (*.mdb)};" &_ "dbq=e:/users/osstrib/osservatoriotributario.com/fpdb/amministratori1.mdb" %> <% strQuery = "select nome, cognome " & _ "from risultati " &_ "where nome_utente = '" & strNomeutente &_ "' and password = '" & strPassword & "'" %> <% set rsCli = connCw.Execute(strQuery) %> <% If not rsCli.BOF and not rsCli.EOF then %>

<% =rsCli("nome") %>   <% =rsCli("cognome") %>

Gestione

Data
 

Dati del cliente
 

E-Mail
 

Telefono
 

Fax
 

Cellulare
 

Nome utente
 

Password
 

Codice
 

Servizio_richiesto

 


<% else %>

Nome utente o Password non corretto

<% end if %>