Ill give you some of the code to make a easy login... You will code the rest!
Ok. first thing to do is add the http wrapper, and moduels into the program.. or else it wont compile right!
Make a textbox, label it txtuser, make another one right under it and label it txtpass.
After you have done this, make a button.. label the button cmdlogin.
After you have done this, Use this code.. I will break it up into pieces.. so you can understand it. (take out the spaces)
Code:
Private Sub cmdLogin_Click()
Dim strHTML As String
strHTML = w.PostWrapper("http://neopets.com/login.phtml", "username=" & txtuser & "&password=" & txtpass & "&destination=%2Fpetcentral.phtml", "http://neopets.com/hi.phtml")
If InStr(1, strHTML, "badpassword") Then
msgbox "Bad Password for account " & txtuser.Text
ElseIf InStr(1, strHTML, "This account has been") Then
msgbox "The account " & txtuser.Text & " has been frozen"
ElseIf InStr(1, strHTML, "petcentral") Then
msgbox "Logged in as " & txtuser.Text Ok the first part is this:
Code:
Dim strHTML As String
strHTML = w.PostWrapper("http://neopets.com/login.phtml", "username=" & txtuser & "&password=" & txtpass & "&destination=%2Fpetcentral.phtml", "http://neopets.com/hi.phtml") This part of the code is telling the wrappper (httpwrapper) to go to the neopets website and put in the parts of text it needs to log in. This is what it does.. in example if the txtuser is omgcat and the txtpass is omgcat
http://neopets.com/login.phtml/usern...tcentral.phtml Code:
If InStr(1, strHTML, "badpassword") Then
msgbox "Bad Password for account " & txtuser.Text
ElseIf InStr(1, strHTML, "This account has been") Then
msgbox "The account " & txtuser.Text & " has been frozen"
ElseIf InStr(1, strHTML, "petcentral") Then
msgbox "Logged in as " & txtuser.Text
This is telling the program to search the page and look for the words. and if it finds the specific word it will tell you if it has logged in or not.
You have successfully made a login.