|
-
Sep 10th, 2007, 03:43 AM
#1
Thread Starter
Fanatic Member
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.
-
Sep 10th, 2007, 04:37 AM
#2
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.
-
Sep 10th, 2007, 04:41 AM
#3
Thread Starter
Fanatic Member
Re: PHP redirect
Oh ok, thanks PG. I thought there might some things in the header to do this. Anyway, thanks a lot.
-
Sep 10th, 2007, 04:42 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|