Cache problem?



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:

<meta http-equiv="Content-Type" content="text/html;
<title>Bonus Login</title>

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! -->

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

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

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


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

<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>

<!-- Script Size: 1.60 KB -->


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