Treehouse: Grow your CSS skills. Land your dream job.

redirect to reffering page

  • # December 21, 2009 at 4:12 am

    I have got pop up window for login link in the header and I have 4 navigation links in header.if user is successfully logined in, i have redirected to index.php page regardless of whichever page the user is in. now i want the user to redirect to same reffering page after successful login. how do i do it?

    # December 21, 2009 at 11:22 am

    Hi there! You can try adding this to your form. I’m not sure what kind of login form you are using. But this is the most common HTML for redirecting to the page the user was on prior to logging in.


    Good luck! :)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.