Topic: Make it to Redirect to a Diff. page if login is Right??????
Ok, so I'm building a website that has two parts: a static website with punbb forums and a separate member's area. Now my problem is that I want only certain users in a certain user group can access this members only area. I don't want to use a CMS because I want the challenge of constructing my own system, but this is the only part I find really difficult and will need help writing (if anyone is willing to offer, sadly I don't have any payment options though).
Now I was thinking that I would paste the snippet of PHP code and if it's correct, have it redirect to the member's area URL or return an error if the PHP code can't find their user name/password/group ID. I've looked a little bit at the login.php but it doesn't search for the correct group ID. If anyone is willing to construct this code or help me out I'd greatly appreciate it.
Thanks for reading!