Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/171196-member-login-problem/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/171196-member-login-problem/#findComment-902799
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/171196-member-login-problem/#findComment-902805
Share on other sites

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).

Link to comment
https://forums.phpfreaks.com/topic/171196-member-login-problem/#findComment-902822
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.