Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Header information and Target frame ?

Status
Not open for further replies.

MartinCouture

Technical User
Feb 16, 2002
57
CA
<? if(isset($choice)){header(&quot;Location:
The problem is that this code is inside a frame and the page that is called up, will show in the same frame, not the whole page.

What I would like to do is add the target=&quot;_top&quot; somewhere in there... is that possible... like the <a ... target=&quot;_top&quot;>

(Why not put the code inside index.php, because I want to keep the default as index.html, so that's why the frame main.php contains the code)

(As an aside, do I have to have a .php for a file extension or can I put php code in a html file and work...)

Thanks :)
 
As a new developpement, the page that loads (the one that I would like to load in the _top frame) was modified with a bit of javascript :

<script type=&quot;text/javascript&quot;>
<!--
if (top.location.href != location.href)
top.location.href=location.href;
// -->
</script>

This works nicely on any page BUT a page that is called through a header redirect like the one I use... So I'm back to square one, what is the easiest way to redirect to a new web page AND direct it to the _top level ??

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top