A
Anthony
Can someone tell me why this script isn't working? I get an error on
page message. Thanks.
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>New Page 1</title>
<script language="javascript">
<!-- Begin
var userData = new Array()
userData[] = new Array("sbazell", "0513", "Agent Bonus/aknram.htm");
userData[] = new Array("techambers", "Chambers1", "Agent
Bonus/xplojh.htm");
userData[] = new Array("afrye", "AJPMF1998", "Agent Bonus/yxjgrv.htm");
userData[] = new Array("thead", "Blessed07", "Agent Bonus/jnsihy.htm");
userData[] = new Array("cryjohnson", "kittycat6", "Agent
Bonus/xdowud.htm");
userData[] = new Array("rckenley", "Baller", "Agent Bonus/vxjuye.htm");
userData[] = new Array("nmock", "Dimonds4ever", "Agent
Bonus/zzojkl.htm");
userData[] = new Array("gnimley", "Qwejue", "Agent Bonus/hsoywm.htm");
userData[] = new Array("vestewart", "TD3301", "Agent
Bonus/muedjk.htm");
userData[] = new Array("jthrelfall", "jeff1", "Agent
Bonus/uehdlo.htm");
function Login() {
var username=document.login.username.value.toLowerCase();
var username=document.login.password.value.toLowerCase();
for (i=0; i<userData.length; i++) {
if (username==userData [0] && password==userData [1]) {
window.open(userData [2]);
return true;
}
}
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>
</body>
</html>
page message. Thanks.
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>New Page 1</title>
<script language="javascript">
<!-- Begin
var userData = new Array()
userData[] = new Array("sbazell", "0513", "Agent Bonus/aknram.htm");
userData[] = new Array("techambers", "Chambers1", "Agent
Bonus/xplojh.htm");
userData[] = new Array("afrye", "AJPMF1998", "Agent Bonus/yxjgrv.htm");
userData[] = new Array("thead", "Blessed07", "Agent Bonus/jnsihy.htm");
userData[] = new Array("cryjohnson", "kittycat6", "Agent
Bonus/xdowud.htm");
userData[] = new Array("rckenley", "Baller", "Agent Bonus/vxjuye.htm");
userData[] = new Array("nmock", "Dimonds4ever", "Agent
Bonus/zzojkl.htm");
userData[] = new Array("gnimley", "Qwejue", "Agent Bonus/hsoywm.htm");
userData[] = new Array("vestewart", "TD3301", "Agent
Bonus/muedjk.htm");
userData[] = new Array("jthrelfall", "jeff1", "Agent
Bonus/uehdlo.htm");
function Login() {
var username=document.login.username.value.toLowerCase();
var username=document.login.password.value.toLowerCase();
for (i=0; i<userData.length; i++) {
if (username==userData [0] && password==userData [1]) {
window.open(userData [2]);
return true;
}
}
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>
</body>
</html>