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?

    MJK
    # 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.

    Code:

    Good luck! :)

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".