SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Feb 2006
    Location
    East Yorkshire, UK
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Redirect user to previous page once logged in

    Hello everyone.

    Right im having trouble with this one. What i am trying to do, is when a user logges in on my forum (which they can do anywhere they are) it need it to re-direct them back to the page they were previously viewing.

    What happens at the moment when the user logges in is there username and password get passed to checkuser.php and upon successful loggin they get re-directed using the following code

    PHP Code:

    header
    ("Location: ../index.php"); 
    Can anyone help me as to what i can do ?

    Regards
    Chris
    I don't have an adictive personality! ,I just can't say no is all

  2. #2
    SitePoint Enthusiast pento's Avatar
    Join Date
    Jan 2006
    Location
    Russia, Novosibirsk
    Posts
    70
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Http_referer ?
    GetDown->MakeLove();

  3. #3
    SitePoint Zealot
    Join Date
    Feb 2006
    Location
    East Yorkshire, UK
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah chears the worked
    I don't have an adictive personality! ,I just can't say no is all


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •