Beginner VB

Moderators: None (Apply to moderate this forum)
Number of threads: 1233
Number of posts: 2978

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Login functionality Posted by Raza on 5 Jul 2002 at 7:13 AM
Hi!

I intend to add a login functionality to my application,which will allow users to login to access the application.
Any ideas, as to how I can do this ,in the simplest possible way?

Thank you :)


Report
Re: Login functionality Posted by KDivad Leahcim on 6 Jul 2002 at 5:07 AM
: Hi!
:
: I intend to add a login functionality to my application,which will allow users to login to access the application.
: Any ideas, as to how I can do this ,in the simplest possible way?
:
: Thank you :)

Simplest way?
Dim t As String
t = InputBox("Please enter your username:")
If t = "John" Then
    t = InputBox("Please enter your password:")
    If t = "Doe" Then
        MsgBox "Logged in"
    Else
        MsgBox "Invalid password"
    End If
Else
    MsgBox "Invalid username"
End If

But that's far from secure. I don't know of a secure method though...



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.