N
nyy
This is a program that is supposed to save the user name and password
in cookies, and when the user comes back to login and he enters the
same user name and password, a pop up message welcome him or her. If
after three tries the user don't enter the same User/pass, let the user
knows it is his or her time on the page. Thanks and here is so far what
I have. help is appreciate it. Thanks again.
<HTML>
<HEAD>
<TITLE>Badia</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function LogIn(){
loggedin=false;
username="";
password="";
username=prompt("Username:","");
password=prompt("Password:","");
if (username=="" || password=="")
{
alert("Invalid login, please try again!");
}
if (username!="" && password!="");
{
alert("Your user name and password has been saved!");
}
}
</SCRIPT>
</HEAD>
<BODY>
<center>
<h1>WEB 420 </h1>
<h2>Badia</h2>
</center>
<center>
<form><input type=button value="Login!" onClick="LogIn()">
</form>
</center>
</BODY>
</HTML>
in cookies, and when the user comes back to login and he enters the
same user name and password, a pop up message welcome him or her. If
after three tries the user don't enter the same User/pass, let the user
knows it is his or her time on the page. Thanks and here is so far what
I have. help is appreciate it. Thanks again.
<HTML>
<HEAD>
<TITLE>Badia</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function LogIn(){
loggedin=false;
username="";
password="";
username=prompt("Username:","");
password=prompt("Password:","");
if (username=="" || password=="")
{
alert("Invalid login, please try again!");
}
if (username!="" && password!="");
{
alert("Your user name and password has been saved!");
}
}
</SCRIPT>
</HEAD>
<BODY>
<center>
<h1>WEB 420 </h1>
<h2>Badia</h2>
</center>
<center>
<form><input type=button value="Login!" onClick="LogIn()">
</form>
</center>
</BODY>
</HTML>