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."
            lblStatus.Text = "Try again."
            MsgBox("Login failed.")
        End If
    End Sub
This article has been dead for over six months. Start a new discussion instead.