i am looking for a php login script that send users depending on their login to a login specific site.
its supposed to be a client area.
example: there is a login form on the website (html not flash), t he client enters his given username and password an will be transported to the site specified for him. client a gets to see client a site, client b gets to see client b site. i hope this is not too confusing.
i found the following script which uses .htaccess and a form, but unfortunatly it doesn’t work with multiple logins.
That should do it. If it doesn’t work, I’ll leave this to JubJub Remove the a href stuff, only keep the http:// address, so that it become **“Location: url”**The whole a href part is autmoatically added. That’s kinda annoying :-\
thanks a lot for you reply and help. sorry to ask such stupid questions but where do i store the users and passwords. this doesn’t work with .htaccess anymore. the script should handle different directories. (clients/client a or clients/client b)
do i store it in the php file? if so it would seem pretty unsecure. doesn’t it?
the script should handle only a few users (5). does this script ensure that user a can’t see user b stuff?
Well, the php script can’t be viewed by the browser, especially not because it will redirect very fast. And by the way, that’s no stupid question :). The passwords should be ‘stored’ inside your users brains. You should tell them the user name and password which they can use to go to their page. And if your users do not pass them along, they won’t get to see the other’s pages.
i renamed the pass.php into index.php and uploaded it there, but it automatically redirects to user3url without even showing the form? i don’t get the chance to login.
Oh well, let’s just do it the good ol’ fashion way then. Make sure to upload them both in the same directory, or else change the link to the php file in the html.