// That should make it a little bit harder to figure out your passwords... // If you have a password protected folder in your web directory, it's just as // safe as any .esp, .cgi, .perl or .asp script... 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=="top" && password=="secret") { window.location="1234.html"; done=1; } // You can have different pages for each member if you like. // If you use frames, this script can also link to two or more frames simultaneously. // Eg.: // if (username=="memberx" && password=="passwordx") { parent.your_1st_frame_name.window.location="privat/main.html"; parent.your_2nd_frame_name.window.location="privat/header.html"; done=1; } if (username=="member2" && password=="password2") { window.location="1234.html"; done=1; } if (username=="member3" && password=="password3") { window.location="1234.html"; done=1; } if (done==0) { alert("You entered an invalid username / password! If you have valid authorization please try again.\n\nUnauthorized access is strictly forbidden, and will be prosecuted to the maximum extent of the law!"); } } // End -->
Click here to close this window |