Nah, it's Unown. :/
Can someone join the website to get a better feel of what I'm trying to do, please? x_x
Okay so apparently (thanks to Debug.Print) my login is messing up. What happens is it'll input the username/pass on the and hit log in but after that a redirect page will pop up, saying:
Quote:
You are logged in. You will be redirected in 0 seconds.
If you are not redirected, please click here.
|
Then it redirects to the index, but if you 'click here' it'll take you to:
Shadow RPG :: Stats
Now, I tried the Debug.Print after immediately logging in, and it successfully tells me that I am logged in and waiting to be redirected. When you 'click here' when you're actually on the site (and not using the program) it'll take you to the stats page and keep you logged in. When I put it into my program, then put Debug.Print after it, the Immediate Window tells me that I'm no longer logged in. Any help here?
Quote:
Private Sub cmdLogin_Click()
Dim strHTML As String, OnOff As Boolean
strHTML = Wrapper.PostWrapper("http://srpg.myircshells.com/login.php", "user=" & txtUser.Text & "&pass=" & txtPass.Text)
If InStr(1, strHTML, "failed") Then
lblStatus.Caption = "Bad password."
ElseIf InStr(1, strHTML, "You are logged") Then
lblStatus.Caption = "Logged In."
Debug.Print strHTML
Else
lblStatus.Caption = "Unknown Error."
End If
End Sub |
So basically this redirect is messing me up, cause I don't know how to make the program 'wait to be redirect [and stay logged in]' on its own, and forcing it to go to the stats.php page after logging in isn't letting me stay logged in. ><
Hell yeah, I finally got it to work lol. Any way to make it wait between page changes? I wanna slow the program down a little.