Page 1 of 1

Need help: Login screen with particular domain

Posted: Tue Jun 28, 2011 7:59 am
by benz862
I need a PHP script that will direct a person (upon logging in) who uses their email address as their username to be redirected to a different web site.

i.e. If person "A" had the domain of "personA@abc.com" they would be directed to web site "123.com"
If person "B" had the domain of "personB@xyz.com" they would NOT be allowed to log into the site, thus no redirection to "123.com"

Any ideas? Please advise. Thanks in advance

Re: Need help: Login screen with particular domain

Posted: Tue Jun 28, 2011 12:34 pm
by Jade
You need to parse their email address to figure out what the value is after the @ symbol. Take a look at strpos() and substr() in the php manual.