hi
i have done a page which contains username and password,there i have to check my username and password string and authenticate that page.
here is my code.
<%@ page language="java" %>
<html>
<head>
<title> WELCOME </title>
<script language = "Javascript">
function ValidateEmail(){
var emailID=document.frm.t1;
var emailID1=document.frm.t2;
if ((emailID.value==null)||(emailID.value==""))
{
alert("Please Enter A Valid User Name")
emailID.focus()
return false
}
if ((emailID1.value==null)||(emailID1.value=="")){
alert("Please Enter Your Password")
emailID1.focus()
return false
}
return true
}
</script>
</head>
<body>
<center/><h1>SOFTWARE ENGINEER RECRUITMENT</h1>
<marquee SCROLLDELAY=250><h4> To test your Intelligence Quotient </h4></marquee>
<body style="background-color:#F5F5DC">
<br>
<br>
<br>
<br><br>
<br><br>
<center>
<form name="frm" method="post" action="login.jsp" onSubmit="return ValidateEmail()">
<h3>USERNAME:
<input type="text" name="t1" />
<br><br>
PASSWORD:
<input type="password" name="t2" />
</h3>
<br>
<input type="submit" value="Login"/>     
<input type="reset" value="clear"/>
</form>
</html>