:evil: :evil: :evil: :evil :evil:
This is completely basic login script. you'll definitely have more users(so user database in mySql or a file) and also security and session control stuffs. <?PHP if(isset($_POST['submit'])) { $userName=trim($_POST['userName']); $passWord=$_POST['passWord']; if($userName=="yourName" and $passWord=="yourPassword") { //Contents for logged in user goes here echo 'You are logged in to view protected contents!'; } } echo '<form method="post"> Username : <input type="text" name="userName" /> Password : <input type="password" name="passWord" /> <input type="submit" name="submit" value="Login"> </form>'; ?>
The password character is usually an asterisk. ASCII code 42 (hex:2a).
Visual Basic Controls work on Visual Studio for Visual Basic and Applications that made by Visual Basic.
This a facility to create a password program easly provided by visual basic. This is done by different ways. one of them I illustrate it.First of all we take a label, textbox, commandbutton and set its property as follow-ovject property discriptionLabel caption Password :Textbox textPassword char *command button caption OKCode for creating a simple password program-Private Sub command1_click()If Text1.Text=12345 Thenmsgbox "Intelligent You locked the password"Elsemsgbox "You are so a idiot"End IfEnd subWhen this program execute then when we enter a password into textbox then if the password is 12345 then message appear in message box is " Intelligen You Breacked the password" otherwise message appear in message box " You are so idiot".
Visual Basic was started in 1991.
Visual Basic was created by a team at Microsoft.
Microsoft is the developer of visual basic
The programming language: Visual Basic is a BASIC-like (or BASIC-derived) language, Visual C is... well C.
No.
Visual Basic was started in 1991.
Microsoft is the developer of Visual Basic.
To create a login form using an array in Visual Basic 2010, you can first define a string array to hold valid usernames and passwords. For example, you could use Dim credentials(,) As String = {{"user1", "pass1"}, {"user2", "pass2"}}. In the form's button click event, iterate through the array to check if the input username and password match any of the pairs. If a match is found, grant access; otherwise, display an error message.