PDA

View Full Version : password


anya_aa
02-10-2006, 01:53 PM
hi,
i ve created a website in which i have username and password,i want to check if the user has entered the correct password.i m using files system and jsp.

ttttt
02-27-2006, 08:27 PM
Can you post the code?
But it sounds like:

<script language="JavaScript">
var if("username" = "username")
var password prompt("What is your password?");
var if password = "Password"
{window.location = "protected_page.htm";}
</script>

I don't know of a better way but probably someone else knows how to do it more securely because at the moment you can go to veiw<source and scroll down to get the password. I don't think you can do it securely with JS but try SSI (server-side includes) like php or perl.

Masterslave
02-28-2006, 09:03 AM
@ttttt (member.php?u=27249);
The topicstarter asked for JSP, not javascript.
And your code doesn't seems to work...

ttttt
03-03-2006, 04:05 PM
Sorry
I think i got the wrong forum!