All he is doing is assigning the URL to post data, the referrer and post data to three different strings. He isn't using different GetWrappers at all. What he is doing is perfectly fine - I infact do it a lot when programming applications that interact with the web.
It seems more than anything that you're confused about what he's doing.
All he is doing is instead of writing it on one line, spans it over multiple lines.Code:strPost = "blah" & strUsername & "blah"
There is nothing wrong with that, and it isn't more complicated.Code:strPost = "blah" & _ strUsername & _ "blah"
Results 1 to 30 of 30
Thread: [Code]Auto PM'er
Hybrid View
- 30 Mar. 2010 03:23am #1
- 30 Mar. 2010 03:47am #2
It seem's more complicated than the way I coded it... Is all I am saying...
I see what he is doing perfectly fine... I just would do it like:
Code:StrHTML = Wrapper.GetWrapper("http://www.gaiaonline.com/profile/privmsg.php?mode=post") StrHTML = Wrapper.PostWrapper("http://www.gaiaonline.com/profile/privmsg.php", "username=" & lstaccounts.Items.Item(IntAcct) & "&subject=" & txtSubject.Text & "&message=" & txtMessage.Text & "&folder=inbox&mode=post&btn_send=true") If (InStr(1, StrHTML, "Your Private Message has been sent to: ")) Then MsgBox("Message sent to : " & lstaccounts.SelectedItem) Else MsgBox("Failed to send message...") End If
Yes it is a personal preference, I understand that it may seem less complicated to you than to me, or vice a versa... I am simply expressing my opinion on the topic...