Username and password help
Well im trying to make a login system that checks usernames and passwords. i can check fine against ../users/username/username.txt and password.txt
on the user's computer. but would like to check against mysql database.
Thats what i have so far
on the user's computer. but would like to check against mysql database.
Code:
If TextBox4.Text = ""Then
MsgBox("Error No Username Selected!", MsgBoxStyle.Critical)
Else
IfMy.Computer.FileSystem.DirectoryExists("c:iCodedusers" + TextBox1.Text + "") Then
Dim Userread As System.IO.StreamReader = New System.IO.StreamReader("c:iCodedusers" + TextBox1.Text + "" + "username.txt")
Dim Userline AsString
Dim Passread As System.IO.StreamReader = New System.IO.StreamReader("c:iCodedusers" + TextBox1.Text + "" + "password.txt")
Dim Passline AsString
Do
Passline = TextBox2.Text
Userline = Userread.ReadLine()
Console.WriteLine(passline)
Console.WriteLine(userline)
LoopUntil userline IsNothing
If TextBox2.Text = ""Then
MsgBox("Error Fill a password in", MsgBoxStyle.Critical)
Else
If Passline = Passread.ReadLine() = TrueThen
MsgBox("Welcome!", MsgBoxStyle.Information)
Form2.Show()
Me.Hide()
EndIf

little example for log in without sql:
OrX|=-";
MSN:lauriadi@hotmail.com