Ok, I got the SSI info ready on my forum, so that the membergroups 'VIP' and 'Admin' would receive a response of 'Yes', and other usergroups receive a response of 'No'. I have created a login script in VB .NET that makes the user log in. If he response from the .php is 'Yes', I will allow access to the program. If 'No', it will show an error. How do I make VB .NET read the response from the .php file? This is what I have so far:

Private Sub btnLogin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLogin.Click
        Dim s As New HTTPWrapper
        lblStatus.Text = "Please wait..."
        Dim strhtml = s.GetWrapper("http://maplehunters.com/forum/index.php?action=login")
        lblStatus.Text = "Logging in..."
        strhtml = s.PostWrapper("http://maplehunters.com/forum/index.php?action=login2", "user=" & txtUsername.Text & "&passwrd=" & txtPassword.Text & "&cookieneverexp=on&hash_passwrd=")
        lblStatus.Text = "Checking..."
        strhtml = s.GetWrapper("http://maplehunters.com/forum/accinfome.php")
        Dim clear As String = s.iB(strhtml, Chr(34) & "posts" & Chr(34) & ">", "</div>")
        If InStr(strhtml, "status2") Then
            lblStatus.Text = "Logged in."
            frmMapleTools.Show()
            Me.Hide()
        Else
            lblStatus.Text = "Try again."
            MsgBox("Login failed.")
        End If
    End Sub

bump. Does anyone know how to do this?

bump again...does anyone know?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.