1 Replies - 444 Views - Last Post: 18 August 2012 - 05:07 AM Rate Topic: -----

#1 rpgmaker  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 224
  • Joined: 02-October 11

Adding a listbox into a http post

Posted 18 August 2012 - 04:53 AM

Ok so im doing a normal http post like so

strHTML = HTTP.PostWrapper("http://www.mydomainname.net/login.php", "username=myusername&password=mypassword&submit=Login")


and all works fine but now id like to go though a list of accounts i have all the usernames stored in list1 and all the passwords stores in list2

So now i try and and do the post with the fist lines so i grab the first line from list1 for the username and the first line of list2 for the password and try and do the post like so.

strHTML = HTTP.PostWrapper("http://www.mydomainname.net/login.php?tid=", "username=" & List1.List(0) & "password=" & List2.List(0) & "submit=Login")


But seems like the post is not working even tho the is a line in list and list 2...

This post has been edited by rpgmaker: 18 August 2012 - 04:55 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Adding a listbox into a http post

#2 rpgmaker  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 224
  • Joined: 02-October 11

Re: Adding a listbox into a http post

Posted 18 August 2012 - 05:07 AM

This is now fixed i forgot 2 $ the working code is

strHTML = HTTP.PostWrapper("http://www.mydomainname.net/login.php?tid=", "username=" & List1.List(0) & "&password=" & List2.List(0) & "&submit=Login")


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1