Yes, Thank You, that helps with the original script I found above, but I guess I should explain what I'm doing. I have a password login page called LogIn.html and what I want to do is on the clients page that they log into (call it Client.html) I would like to prevent someone coming from somewhere else from directly accessing the page and to refer them to the LogIn page and anyone coming from the LogIn page to be allowed into their page. Hope I explained that correctly. It's kind of a week security validation in addition to the LogIn pages encoding and validation sscript.
So, ignoring the original script and using the code you have above, how would i word an:
IF they come from LogIn.html allow access to this page (Client.html), ELSE send them to the LogIn page.
It's kinda like the Force Frameset scripts out there.
I really appreciate your time and help! Thanks!