I found this script at javascript.internet.com and have it working (through the help of this forum) except it will not pull up the page that I need it to. I have substituted my usernames, and their passwords for member1 etc.., and the proper page in place of the generic page1, 2, 3 in the script. All I get is the file isn’t found. All users will access the same page, not different pages. Can someone help? Thanks
<!– Begin
function Login(){
var done=0;
var username=document.login.username.value;
username=username.toLowerCase();
var password=document.login.password.value;
password=password.toLowerCase();
if (username==”member1″ && password==”password1″) { window.location=”page1.html”; done=1; }
if (username==”member2″ && password==”password2″) { window.location=”page2.html”; done=1; }
if (username==”member3″ && password==”password3″) { window.location=”page3.html”; done=1; }
if (done==0) { alert(“Invalid login!”); }