[求助]VB网络验证问题
<%
Dim name,word
name = Request("name")
word = Request("word")
DBPath = "data/data.mdb"
Set conn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.RecordSet")
On Error Resusme Next
conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath(DBPath)
If Err.Number <> 0 Then
Err.Clear
Set conn = Nothing
Response.Write("数据库连接错误")
End If
rs.open "select * form data where name='" & name & "' and word='" & word & "'",conn,1,1
If Not rs.EOF Then
Response.Write("True")
Else
Response.Write("False")
End If
rs.Close
set rs = Nothing
%>
Private Sub Command1_Click()
str1 = Inet1.OpenURL("http://218.62.29.201/data.asp?name=" & Text1.Text & "&word=" & Text2.Text)
Select Case str1
Case "True"
MsgBox "登陆成功"
Form2.Show
Unload Me
Case "False"
MsgBox "登陆失败:用户名/密码错误,或已到期!"
Case Else
MsgBox "网络错误"
End Select
End Sub
有问题,吧里有人做过的,但是数据库那边怎么建呢?
有谁建好发一份给我!
就是这张帖子
http://post.baidu.com/f?ct=335675392&tn=baiduPostBrowser&sc=1719620116&z=184800185&pn=0&rn=50&lm=0&word=vb#1719620116