© 2014 Firstsoft Technologies (P) Limited. login
Hi 'Guest'
Home SiteMap Contact Us Disclaimer
enggedu
Quick Links
Easy Studies

Validation of Login form using JavaScript

Description:

This program is to validate the Login form. This program checks whether Userid and Password fields are empty or not. In userid you can enter any length of String but in password field length of password is restricted to 6.Length of input given by the user in the password field must have at least 6 characters? Then only the user is allowed for the database verification. Inside the <"SCRIPT"> tag length of the password field is calculated using length () method. If it is less than 6 then alert message will be displayed. In user id field, user input is verified whether it is empty or not.

Validation of Login form using JavaScript:

<%@ page import="java.sql.*" %> <%@ page import="java.io.*" %> <%@ page import="java.util.*" %>

Login Form

UserId        : 

Password  :

Sample ScreenShot:

 
SLogix Student Projects

⇓Student Projects⇓
⇑Student Projects⇑
bottom