Page 1 of 1

Referer header location incorrect redirect...

Posted: Mon Aug 20, 2007 9:46 pm
by JAB Creations
Here is my PHP...

Code: Select all

$page = $_SESSION['referer'];
header('Location: '.$page);
Let's say I edit...
http://localhost/version28/home/home-news.php

When I save the file (template editor) I get redirected based on the above code to...
http://localhost/version28/editor/home-news.php

How can I dynamically adapt it so the header location gives me the desired path?

Posted: Mon Aug 20, 2007 9:59 pm
by superdezign
Magic.

Based on the code you've given us, you are doing absolutely nothing. You reallllly need to give more information.

Posted: Tue Aug 21, 2007 12:39 am
by s.dot
superdezign wrote:Magic.
But, PHP is magic. ;)

Posted: Tue Aug 21, 2007 12:41 am
by JAB Creations
If PHP is magic I've got to figure out how to convert from voodoo. :wink: I fixed the issue btw, thank you.