RE: [PHP] header() and target page
--- John W. Holmes [EMAIL PROTECTED] wrote: I am just full of them this weekend. Is it possible to direct a header like a html link (i.e. target=_top) ? I have a page that is in a frame, and I want the new page that is called to break the frame and load in the entire frame. I do not see why not have the request initially opened in the parent frame since both a and form tags support the target propery... which will be set in this case to parent I hope this makes your life easier ! good luck ! = +--+ |Wana Know what ISLAM is all about ? | +--+ visit : http://www.sultan.org/#int __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] header() and target page
I am just full of them this weekend. Is it possible to direct a header like a html link (i.e. target=_top) ? I have a page that is in a frame, and I want the new page that is called to break the frame and load in the entire frame. Nope. Use JavaScript. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Header and Target
A target name? That's a HTML thing. I think you're confusing header() with HEAD/HEAD I believe. I think it's something like: HEAD BASE TARGET=framename /HEAD But I gave up on frames YEARS ago, so I could be wrong :) Justin French on 15/08/02 7:40 PM, Christian Ista ([EMAIL PROTECTED]) wrote: Hello, I have some frame on the website, and I'd like specify a target name in the header function, is it possible ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Header and Target
That's a HTML thing. I think you're confusing header() with HEAD/HEAD I believe. No no I explaine, I do that : FRAMESET FRAMESET rows=80,*,80 FRAME src=top.html noresize scrolling=No border=0 frameborder=No FRAMESET cols=150,* FRAME src=left.html noresize scrolling=No border=0 frameborder=No FRAME src=mainpage.html border=0 frameborder=No name=content /FRAMESET FRAME src=menu.html noresize scrolling=No border=0 frameborder=No /FRAMESET /FRAMESET I'd like to display all my pages in the frame content. Some times, from the menu for example, I do a a href=. target=content that it's ok but sometimes, I call a php page by header( header(Location: mypage.php); ) but I'd like to display the content in content section frame. To do something like that : www.padeg.be Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Header and Target
Which frame calls the header()? When you're in a frameset, each page is an individual HTML file (or PHP file). If you call a header() in top or left, it will redirect the fram you call... it can't possibly call the content frame. PHP happens on the server, Frames happen on the browser. The only possible option would be to redirect the current frame (eg left), and set some values in the URL, which javascript responds to, getting the content frame to refresh as well. header(Location: page.php?frameToChange=contentnewUrl=something.php); Then a javascript (Java'sCrap) on the redirected script would act upon those variables. The result would be that two frames refresh, not just one, but only if JS is enabled on the browser. YUK! Rethink your logic, there has to be another way. Justin French on 15/08/02 9:32 PM, Christian Ista ([EMAIL PROTECTED]) wrote: That's a HTML thing. I think you're confusing header() with HEAD/HEAD I believe. No no I explaine, I do that : FRAMESET FRAMESET rows=80,*,80 FRAME src=top.html noresize scrolling=No border=0 frameborder=No FRAMESET cols=150,* FRAME src=left.html noresize scrolling=No border=0 frameborder=No FRAME src=mainpage.html border=0 frameborder=No name=content /FRAMESET FRAME src=menu.html noresize scrolling=No border=0 frameborder=No /FRAMESET /FRAMESET I'd like to display all my pages in the frame content. Some times, from the menu for example, I do a a href=. target=content that it's ok but sometimes, I call a php page by header( header(Location: mypage.php); ) but I'd like to display the content in content section frame. To do something like that : www.padeg.be Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Header and Target
No, but instead you could do something like: header (Location: frame.php?url=content.php); Then in frame.php: ?php if ($url) { ? FRAME NAME=content SRC=?= $url ? MARGINWIDTH=1 MARGINHEIGHT=1 SCROLLING=Auto FRAMEBORDER=0 NORESIZE ?php } ? Make sense? -Brian * -Original Message- From: Christian Ista [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 7:32 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Header and Target That's a HTML thing. I think you're confusing header() with HEAD/HEAD I believe. No no I explaine, I do that : FRAMESET FRAMESET rows=80,*,80 FRAME src=top.html noresize scrolling=No border=0 frameborder=No FRAMESET cols=150,* FRAME src=left.html noresize scrolling=No border=0 frameborder=No FRAME src=mainpage.html border=0 frameborder=No name=content /FRAMESET FRAME src=menu.html noresize scrolling=No border=0 frameborder=No /FRAMESET /FRAMESET I'd like to display all my pages in the frame content. Some times, from the menu for example, I do a a href=. target=content that it's ok but sometimes, I call a php page by header( header(Location: mypage.php); ) but I'd like to display the content in content section frame. To do something like that : www.padeg.be Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Header and Target
To make that work with register_globals = off wouldn't you use ? php if ($_REQUEST[url]) { ? Adam On Thu, 15 Aug 2002, Brian V Bonini wrote: No, but instead you could do something like: header (Location: frame.php?url=content.php); Then in frame.php: ?php if ($url) { ? FRAME NAME=content SRC=?= $url ? MARGINWIDTH=1 MARGINHEIGHT=1 SCROLLING=Auto FRAMEBORDER=0 NORESIZE ?php } ? Make sense? -Brian * -Original Message- From: Christian Ista [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 7:32 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Header and Target That's a HTML thing. I think you're confusing header() with HEAD/HEAD I believe. No no I explaine, I do that : FRAMESET FRAMESET rows=80,*,80 FRAME src=top.html noresize scrolling=No border=0 frameborder=No FRAMESET cols=150,* FRAME src=left.html noresize scrolling=No border=0 frameborder=No FRAME src=mainpage.html border=0 frameborder=No name=content /FRAMESET FRAME src=menu.html noresize scrolling=No border=0 frameborder=No /FRAMESET /FRAMESET I'd like to display all my pages in the frame content. Some times, from the menu for example, I do a a href=. target=content that it's ok but sometimes, I call a php page by header( header(Location: mypage.php); ) but I'd like to display the content in content section frame. To do something like that : www.padeg.be Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php