I am working on this site which has a login page, it is up live and works fine from my computer but can't get it to work anywhere else.
This is the code:
<form>
<p><B><FONT SIZE="2" FACE="ARIAL">USER NAME :</B>
<input type="text" name="text2">
</p>
<p><B>PASSWORD :</B>
<input type="password" name="text1">
<input type="button" value="Login" name="Submit" onclick=javascript:validate(text2.value,"tekko",text1.value,"sydney") >
</p>
</form>
<script language = "javascript">
function validate(text1,text2,text3,text4)
{
if (text1==text2 && text3==text4)
load('success.html');
else
{
load('failure.html');
}
}
function load(url)
{
location.href=url;
}
</script>
Does anyone know what I'm doing wrong?