View Full Version : Help with password protection on web site please!!


NightPoet00
12-28-2003, 04:08 PM
I'm trying to put password protection on the "Breed Showcase" and "Fun & Games" links on the following page, but it's not working!!

http://www.geocities.com/equinedreams_mag/jan04.html

Can someone help me? At first I thought it was Geocities being weird, but it wouldn't work on Tripod or Freewebs either. Help!

Beth

Loren
12-28-2003, 04:38 PM
Try changing the code in the header on the horses page to:

<script language="JavaScript" type="text/javascript">
<!--hide
var password;
var pass1="horses";
password=prompt('Enter your password in order to view this page!',' ');
if (password==pass1)
alert('Come on in!');
else
{
window.location="http://www.geocities.com/equinedreams_mag/jan04.html";
}
//-->
</script>


You seem to be missing the quotes around come on in!. Let me know if it works.

PS Fun and games doesn't even have the password code on it to ask for the password.

NightPoet00
12-28-2003, 07:24 PM
Thank you SO much, it's working!! :)

Beth

Loren
12-28-2003, 07:30 PM
Great! :)