Click to See Complete Forum and Search --> : password script
smartguybot576
11-02-2003, 12:31 PM
who here has a password javascript. i thought i had one, but it does work. heres the one i had:
<script language="javascript">
var password = prompt('What is the password?','');
if (password==435934)
{alert('Welcome')}
else
{alert('wrong'); window.location="http://www.geocities.com/smartguybot576"}
</script>
if anyone can figure it our i would be enternaly greatful!:D Thank you all.:confused: :confused: :confused:
smartguybot576
11-02-2003, 01:32 PM
culd any1 give me any help?! is it even possible? is there sumwhere i can look?! help pleez!
Nayias
11-02-2003, 04:06 PM
<script language="javascript">
var password = prompt('What is the password?','');
if (password==435934)
{alert('Welcome'); window.location="http://www.geocities.com/smartguybot576";}
else
{alert('wrong')}
</script>
that should work.
smartguybot576
11-02-2003, 04:11 PM
i've already tried that one and it didn't work...
do you know a more secure one, ive heard that that code also made it easy to get into the website.
ratmfan36
11-02-2003, 06:33 PM
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var password = ''
password=prompt('Please enter your password:','I wonder')
; if (password != null) {
location.href= "http://www.geocities.com/" + password;
}
// End -->
</SCRIPT>
that will work and the password is the extension u want to go to, in this case smartguybot576
ratmfan36
11-02-2003, 06:35 PM
ull have to make a weird extension no one knows about, thats the only way to make it secure
i havent come across a very secure password script, im not sure if their are any available
smartguybot576
11-02-2003, 07:10 PM
wut u meen by extension?
I would recommend using a server-side script to do this - something like PHP or Perl.
http://www.vtfb.org/vfbmember/password/newpwd.htm
It has worked well for me but you should not use a wysiwyg editor. Use notepad or something.
Save that webpage to you computer so you can use it over and over as you change members or passwords.
smartguybot576
11-03-2003, 06:05 AM
is there a way i could have a user click a button and it automaticly be added 2 the list?