ciao!
Ho questo codice in visual basic ma siccome lo devo utilizzare in internet lo dovrei mettere dentro HTML.Mi saprebbe dire qualcuno come si fa???
grazie!

Private Sub cmdOK_Click()
Dim db_password_clienti As String
Dim statement As String
Dim conn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim getUrl As Hyperlink


' Open the database.
db_password_clienti = "C:\Documents and Settings\...\sito"
If Right$(db_password_clienti, 1) <> "\" Then db_password_clienti = db_password_clienti & "\"
db_password_clienti = db_password_clienti & "password_clienti.mdb"

' Open a connection.
Set conn = New ADODB.Connection
conn.ConnectionString = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & db_password_clienti & ";" & _
"Persist Security Info=False"
conn.Open

' Look up the user name/password.
statement = "SELECT COUNT (*) FROM dati_clienti WHERE " & _
"UserName='" & Replace(txtUsername.Text, "'", "''") & "' AND " & _
"Password='" & Replace(txtPassword.Text, "'", "''") & "'"
Set rs = conn.Execute(statement)

' See if we got anything.
If CLng(rs.Fields(0)) < 1 Then
' There is no match.
' Do not allow the login.
Unload Me
MsgBox "Invalid user name/password."
Else
' There is a match.
' Display the program's main form.
' Form1.Show

MsgBox ("finalmente funziona!!")
Unload Me
End If

rs.Close
conn.Close

End Sub
Private Sub cmdAnnulla_Click()
accepted = vbCancel
txtUsername = ""
txtPassword = ""
End Sub