View Single Post
  #8 (permalink)  
Old 09-27-06, 01:11 AM
mab's Avatar
mab mab is offline
Community VIP
 
Join Date: Oct 2005
Location: Denver, Co. USA
Posts: 2,674
Thanks: 0
Thanked 0 Times in 0 Posts
Using a fresh copy from the author's web site, I got it to login. Here are the values I used (everything was in the root directory for quick testing) -
Code:
var successpage = "jslogin2.html";
var loginpage = "jslogin1.html";

var imgSubmit = "crystal_on.jpg";
var imgReset = "crystal_off.jpg";

users[0] = new Array("mab","pwd","");
and (added ;return false near the end, which I believe you already had) -
Code:
  document.write('<tr><td align="center" colspan="2"><p><input type="image" src="'+imgSubmit+'" onclick="login(username.value,password.value);return false">');
It is not the use of a cookie login that is the problem, it is using code where the passwords are visable... There is probably a reason why the company's name is "laugh" land.
__________________
Error checking, error reporting, and error recovery. If your code does not have these to get it to tell you why it is not working, what makes you think someone in a programming forum will be able to tell you why it is not working???

Last edited by mab; 09-27-06 at 01:14 AM.
Reply With Quote