Click to See Complete Forum and Search --> : PHP redirect
nebulom
Sep 10th, 2007, 03:43 AM
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.
penagate
Sep 10th, 2007, 04:37 AM
You could store the last page URL in a session variable, or pass it to the edit page in a GET variable.
nebulom
Sep 10th, 2007, 04:41 AM
Oh ok, thanks PG. I thought there might some things in the header to do this. Anyway, thanks a lot.
penagate
Sep 10th, 2007, 04:42 AM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.