Okay Right now i got this really annoying glitch where i have 2 passwords and they both lead you to 2 different places, the problem is they keep going to the same dang url! so one is linking to success.html and one to success2.html and they both keep linking to success2.html, really annoying, can anybody tell me what's going on?
here's My Code
HTML Code:<html> <head> </head> <body> <form> <p>ENTER USER NAME : <input type="text" name="text2"> </p> <p> ENTER PASSWORD : <input type="password" name="text1"> <input type="button" value="Check In" name="Submit" onclick=javascript:validate(text2.value,"Clayf700",text1.value,"login") > </p> </form> <br> <form> <p>ENTER USER NAME : <input type="text" name="text4"> </p> <p> ENTER PASSWORD : <input type="password" name="text3"> <input type="button" value="Check In" name="Submit2" onclick=javascript:validate(text4.value,"Clayf700",text3.value,"login") > </p> </form> <script language = "javascript"> function validate(text1,text2,text3,text4) { if (text1==text2) load('success.htm'); else { load('failure.htm'); } if (text3==text4) load('success2.htm'); else { load('failure2.htm'); } } function load(url) { location.href=url; } </script> </body> </html>



Reply With Quote

Bookmarks