I have a web page that only a handfull of users are allowed to view. I would like to password protect it so that only those certain users can login, and view that form. Is javascript the best way to do this? If so how would I go about doing this, thank you...
Well I havent really gotten to deep into Perl or PHP, but I have heard good things about them. DO you have any really good Perl, or PHP sites you could recommend I look at for examples?
Well I havent really gotten to deep into Perl or PHP, but I have heard good things about them. DO you have any really good Perl, or PHP sites you could recommend I look at for examples?
Williamsba, go prowling sites like http://www.hotscripts.com and maybe get a look at some scripts; read through them a bit. There are quite a few around for password protection, both Perl and PHP.
My personal preference is usually Perl; but mostly because I'm slightly more fluent in it than in PHP and, at least for now, there tend to be more scripts available for Perl. PHP is just as good for this, of course!
I'm presuming you have access to the cgi bin on your server?
If not, and you are stuck with javascript, you will have to write cookies to identify your users. The cookie can contain the url for the page they should be redirected to. And once you extract that value, you can redirect them with a simple window.location = cookieURLValue statement.
Bookmarks