SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Apr 2005
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    go back to the parent page

    After clicking the apply button, the parent page (form) is transferred to a child (handle) page.

    How to go back to the parent page?

    Code:
    header("Location: $_SERVER['HTTP_REFERER']");
    does not go back to the parent page.

  2. #2
    SitePoint Evangelist klik's Avatar
    Join Date
    Jan 2005
    Location
    Scotland, UK
    Posts
    547
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try

    Code:
    header("Location: ".$_SERVER['HTTP_REFERER']);


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
  •