Results 1 to 4 of 4

Thread: PHP redirect

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Resolved PHP redirect

    How do I redirect to the caller page? Like I have a list page that calls edit page and if changes are applied in edit, go back to list page.

    Thanks in advance.
    Last edited by nebulom; Sep 10th, 2007 at 04:42 AM.

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: PHP redirect

    You could store the last page URL in a session variable, or pass it to the edit page in a GET variable.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Re: PHP redirect

    Oh ok, thanks PG. I thought there might some things in the header to do this. Anyway, thanks a lot.

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: PHP redirect

    There's $_SERVER['HTTP_REFERER'], but that relies upon the user agent to transmit it correctly and as such should be avoided for any serious purpose.

Posting Permissions

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



Click Here to Expand Forum to Full Width