Page 1 of 1
header function
Posted: Sun Feb 15, 2004 11:38 am
by phpnovice
when using the header function in php is it possible to set the frame using target or something similar like in HTML. i cant seem to find the right syntax for doing this.
Cheers once again guys!
James
p.s we may need to set up a forum for just my questions alone!

Posted: Sun Feb 15, 2004 12:25 pm
by JAM
No, you cant. But...
Code: Select all
<frameset rows="100, *">
<frame src="1.php">
<frame src="2.php">
</frameset>
...if 2.php contains a header(), only that frame would change to the new location.
Posted: Sun Feb 15, 2004 12:43 pm
by phpnovice
thats why i cant get it to work then. bit annoying but im sure ill find a way around. ive got lots more questions (ive just started playing with sessions) so stay tuned.
Cheers
james
Posted: Sun Feb 15, 2004 12:46 pm
by JAM
Hehe, that whats this board is for.
You can also play around using Iframes, not just frames. But even there, "targeting" a (i)frame is impossible afaik.
Posted: Sun Feb 15, 2004 1:42 pm
by Dr Evil
Unless you need to keep a navigation in the same place and you want to avoid javascript, I sugest you stay clear of frames.
The nice thing with php is you can build hundreds of similar pages and have the same navigation just as easy to update a a frame if you use an include().