jpopuk Posted August 20, 2009 Share Posted August 20, 2009 Hi, I was wondering if anyone could help me. I have a /members/ section which uses /login.php via the /myaccount/ section. So far I have it so when you click /members/ it takes you to the /myaccount/login.php but when you login it goes to /myaccount/ section. I want it so it will goto the /members/ section. Does this make sense? Some one briefly mentioned to me about a target but I am not clued up so I have no idea what to do. If any one has any suggestions that would be great. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/171196-member-login-problem/ Share on other sites More sharing options...
ChrisMartino Posted August 20, 2009 Share Posted August 20, 2009 in you're login.php or whatever u called it look for something that has the redirect to ur members area like "/memberarea" and change that to the page u want. Quote Link to comment https://forums.phpfreaks.com/topic/171196-member-login-problem/#findComment-902778 Share on other sites More sharing options...
jpopuk Posted August 20, 2009 Author Share Posted August 20, 2009 I have played around with the login.php file. I want it so login from /myaccount/ section it will take you to /myaccount/ and login from /members/ section it will login to /members/ Quote Link to comment https://forums.phpfreaks.com/topic/171196-member-login-problem/#findComment-902792 Share on other sites More sharing options...
mikesta707 Posted August 20, 2009 Share Posted August 20, 2009 I don't really understand what you are trying to do, but let me see if i got this straight. You have 1 login.php page? Currently, regardless of what links you click, if you login from this page, you are taken to the myaccount section. What you want to do is make it go to the members section instead of myaccount section? well thats very simple... just change the link/header/redirect from myaccount/whatever.html to members/whatever.html did i understand you correctly Quote Link to comment https://forums.phpfreaks.com/topic/171196-member-login-problem/#findComment-902799 Share on other sites More sharing options...
jpopuk Posted August 20, 2009 Author Share Posted August 20, 2009 Ok, you kind of understand me. I have 1 login.php - a /members/ and /myaccount/ when you click /myaccount/ it goes to /myaccount/login.php and the login and takes you to the /myaccount/ I want it so when you click the /members/ link it goes to /myaccount/login.htm but when you login it takes you back to /members/ section. Is that a bit more clearer? I sometimes find it hard to explain things like this, sorry. Quote Link to comment https://forums.phpfreaks.com/topic/171196-member-login-problem/#findComment-902805 Share on other sites More sharing options...
mikesta707 Posted August 20, 2009 Share Posted August 20, 2009 Ok, so you want it to only go to the members section after login if they get redirected from the /members/ section page link? well one solution would be to have the redirect on that page also page a GET variable, and on the login page have it redirect to the members section of that get variable is set (or equal to a certain value). Quote Link to comment https://forums.phpfreaks.com/topic/171196-member-login-problem/#findComment-902822 Share on other sites More sharing options...
jpopuk Posted August 20, 2009 Author Share Posted August 20, 2009 Ok, I don't understand what you mean? Quote Link to comment https://forums.phpfreaks.com/topic/171196-member-login-problem/#findComment-902841 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.