Cant u just use
If Textbox1.Text = "Username" and TextBox2.Text = "Password" then
Else
End if
Or do you want that you can change the Datas for the Programm every time...Like a ViP Programm ?
yeah bubbles, thats just what came to mind lol I know its not really his name just yeah how I remember it lol so correction so Blubb1337 doesn't like hack me and cyber-ly kick my as* for calling him that lol Blubb1337 or Blubb NOT Bubbles (lol)
And okay that sounds good, but how would I code that? Don't forget I'm only like 3weeks of experience into any programing besides HTML so yeah lol
Okay lol and I just refreshed cause it logged me out so now I gotta wait. . .as long as its worth waiting for. . .lol
btw: "Between the do/loop". . .you might wanna use another word or somsthing. . .lol
What imported posted above will work, but instead of using <username></username>
use something like:
[php]
txtfile contents:
username1;password1
username2;password2
username3;password3
code to seperate password from username:
Dim txt As String = wc.DownloadString("http://******.********.com/resources/Login.txt")
Using sRead As New IO.StringReader(txt)
Dim LINEVARIABLE as String
Dim SeperateWords() as String
Do
LINEVARIABLE = sRead.ReadLine()
If LINEVARIABLE is nothing then Exit Do
SeperateWords() = Split(LINEVARIABLE,";")
'Now SeperateWords() Contains:
'SeperateWords(0) = "username1"
'SeperateWords(1) = "password1"
Loop
End Using
[/php]
";" can be replaced with anything else, but make sure you use a character that can't be used on either password or username
Side Note: 95% of free webhost don't allow to externally connect to their MySQL databases. You can only connect locally via php scripts on that webhost -> useless with a free webhost. I could sure offer you a MySQL DB with external access, but if it's just this simple login system, go for the textfile thingy above.
And please, encrypt the passwords using md5.
[php]Imports System.Security.Cryptography
Imports System.Text
Public Function MD5StringHash(ByVal strString As String) As String
Dim MD5 As New MD5CryptoServiceProvider
Dim Data As Byte()
Dim Result As Byte()
Dim Res As String = ""
Dim Tmp As String = ""
Data = Encoding.ASCII.GetBytes(strString)
Result = MD5.ComputeHash(Data)
For i As Integer = 0 To Result.Length - 1
Tmp = Hex(Result(i))
If Len(Tmp) = 1 Then Tmp = "0" & Tmp
Res += Tmp
Next
Return Res
End Function[/php]
[php]If MD5StringHash(SeperateWords(1)) = MD5StringHash(txtPassword.text) then
[...][/php]