Cache problem?


A

Anthony

I have a password script that sends users to a destination page once
they have entered the correct username and password combination. It
works for the first three people and after that it gives an invalid
login message. Someone suggested that it might be viewing the source
code and that I should reload/refresh the page. I tried doing this but
it still does not work after the first few people. Can someone offer
any other suggestions? Thanks. This is the script:

<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>Bonus Login</title>
<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- 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=="jthrelfall" && password=="jeff1") { window.open("Agent
Bonus/uehdlo.htm"); done=1; }
if (username=="sbazell" && password=="0513") { window.open("Agent
Bonus/aknram.htm"); done=1; }
if (username=="techambers" && password=="Chambers1") {
window.open("Agent Bonus/xplojh.htm"); done=1; }
if (username=="afrye" && password=="AJPMF1998") { window.open("Agent
Bonus/yxjgrv.htm"); done=1; }
if (username=="thead" && password=="Blessed07") { window.open("Agent
Bonus/jnsihy.htm"); done=1; }
if (username=="cryjohnson" && password=="kittycat6") {
window.open("Agent Bonus/xdowud.htm"); done=1; }
if (username=="rckenley" && password=="Baller") { window.open("Agent
Bonus/vxjuye.htm"); done=1; }
if (username=="nmock" && password=="Dimonds4ever") { window.open("Agent
Bonus/zzojkl.htm"); done=1; }
if (username=="gnimley" && password=="Qwejue") { window.open("Agent
Bonus/hsoywm.htm"); done=1; }
if (username=="vestewart" && password=="TD3301") { window.open("Agent
Bonus/muedjk.htm"); done=1; }
if (username=="member1" && password=="password1") { window.open("Agent
Bonus/page1.html"); done=1; }
if (username=="member2" && password=="password2") { window.open("Agent
Bonus/page2.html"); done=1; }
if (username=="member3" && password=="password3") { window.open("Agent
Bonus/page3.html"); done=1; }
if (username=="member3" && password=="password4") { window.open("Agent
Bonus/page4.html"); done=1; }
if (username=="member5" && password=="password5") { window.open("Agent
Bonus/page5.html"); done=1; }

if (done==0) { alert("Invalid login!"); }
}
// End -->
</SCRIPT>


<meta name="Microsoft Theme" content="boldstri 1011, default">
<meta name="Microsoft Border" content="t, default">
</head>

<body>

<center>
<form name=login>
<table width=225 border=1 cellpadding=3>
<tr><td colspan=2><center><font size="+2"><b>Bombers Only
Area!</b></font></center></td></tr>
<tr><td>Username:</td><td><input type=text name=username></td></tr>
<tr><td>Password:</td><td><input type=password name=password
size="20"></td></tr>
<tr><td colspan=2 align=center><input type=button value="Show Me The
Money!" onClick="Login()"></td></tr>
</table>
</form>
</center>

<p>
<p align="left"><font face="arial, helvetica"
size="5"><u><b>Protect</b></u> your password.&nbsp; It is the only
information that someone needs to access your
earned bonus amounts or to find out why you lost bonus.</font> </p>
<p>

<!-- Script Size: 1.60 KB -->
&nbsp;
</body>
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top