Targeting header to the _parent

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Zoram
Forum Contributor
Posts: 166
Joined: Sun Aug 18, 2002 3:28 pm
Location: Utah
Contact:

Targeting header to the _parent

Post by Zoram »

Is is possible to target a header() to the parent frame?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

:?:
please explain
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post 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
User avatar
Zoram
Forum Contributor
Posts: 166
Joined: Sun Aug 18, 2002 3:28 pm
Location: Utah
Contact:

Post 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");
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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...
Post Reply