For multiple accounts you would either use Multi-Dimensional Arrays or a List of Arrays. They are basically the same thing.
Except for the multi-dimensional arrays you need to keep track of how many you are using with an integer.
Small example in C# written off of the top of my head.
String[,] AccountArrays = new String[10, 2]; //10 Accounts supported, 10 rows with 2 columns in each row. Username Password style.
Int32 AccountCount = 0;
AccountArrays[AccountCount, 0] = Username;
AccountArrays[AccountCount, 1] = Password;
AccountCount++; //This will add 1 to the count.
And if you print it
Console.WriteLine(AccountArrays[0, 0]);
It will be returned with the first rows username value (first column)
Console.WriteLine(AccountArrays[0,1]);
Will print the first rows account password (second column).
AccountArrays[ROW, COLUMN]
Shouldn't be to hard to convert into VB.Net.
Fuck it, I'll make a tutorial.
---------- Post added at 11:24 PM ---------- Previous post was at 11:01 PM ----------
Here is a quick example I wrote up in C# using HTTP Wrappers and my local login.php file on my wamp. It uses multi-dimensional arrays.
class Program
{
#region Declarings
static HTTPWrapper.HTTPInterface[] Wrapper = new HTTPWrapper.HTTPInterface[10];
static String[,] AccountArray = new String[10, 2];
static Int32 ArrayCount = 0;
#endregion
static void Main(string[] args)
{
String Username = String.Empty;
String Password = String.Empty;
for (; true; )
{
Console.Write(">>");
String[] Split = Console.ReadLine().Split('-');
switch (Split[0].ToLower())
{
case "add array":
if (ArrayCount < 10)
{
Console.Write("Username: ");
Username = Console.ReadLine();
Console.Write("Password: ");
Password = Console.ReadLine();
Wrapper[arraycount] = new HTTPWrapper.HTTPInterface();
if (Wrapper[arraycount].Post("http://localhost/login.php", "key=" + new Random().Next(0, 100) + "&username=" + Username + "&password=" + Password + "&signInButton=Log+In").IndexOf("You have logged in!") > -1)
{
AccountArray[ArrayCount, 0] = Username;
AccountArray[ArrayCount, 1] = Password;
Console.WriteLine(AccountArray[ArrayCount, 0] + " : Has logged in!");
ArrayCount++;
}
else
{
Console.WriteLine("Failed to login!");
}
}
else
{
Console.WriteLine("You can only support up to 10 accounts!");
}
break;
case "get array":
Console.WriteLine("Username: " + AccountArray[Int32.Parse(Split[1]), 0]);
break;
}
Console.WriteLine(String.Empty);
}
}
[/1][/arraycount][/arraycount][/0][/10]