Page 1 of 1

Targeting header to the _parent

Posted: Wed Mar 19, 2003 3:59 pm
by Zoram
Is is possible to target a header() to the parent frame?

Posted: Wed Mar 19, 2003 5:28 pm
by volka
:?:
please explain

Posted: Wed Mar 19, 2003 5:45 pm
by Gen-ik
I think they mean that using header("Location:bla.php") target transfers the current page to where ever the location is pointing.. but they want to target the page's parent header..

..like using window.top.location.href="bla.php" in JavaScript... but obviously trying to get the same effect from PHP.


I think :D

Posted: Wed Mar 19, 2003 8:03 pm
by Zoram
Yes. very similar

Like linking with

Code: Select all

<a href="home.php" target="_parent">Home</a>
Except with a

Code: Select all

header("Location: home.php");

Posted: Wed Mar 19, 2003 8:41 pm
by volka
netscape definded a header for that purpose
http://wp.netscape.com/eng/mozilla/2.0/ ... arget.html
but neither IE nor mozilla 1.2 recognize it, so I strongly advise against it...