Re: [PHP] Inline Frame and php

2005-03-01 Thread Joe Harman
Hey Todd, 

I use iframe alot.. what you have to do is tell it a target... but, i
am not sure if you can do that with header('Location:...) .. i would
be interested to know also

Joe


On Mon, 28 Feb 2005 16:30:28 -0800, Todd Cary [EMAIL PROTECTED] wrote:
 My client insists on using inline Frames that uses my php pages.  As an
 example, this is on one page:
 
 IFRAME target=_top frameborder=0
 SRC=search.php?search_text=?echo($search_text);? WIDTH=592 HEIGHT=282
 /IFRAME
 
 This works well with the control being given to search.php.  What I do
 not understand is that within search.php, I have a statement that is
 suppose to pass control to anther page.  The line is
 
 header(location: http://192.168.0.23/mypath/mypage.php;);
 
 Rather than going to the page, it opens mypage.php in the inline frame.
 
 Is there a way to leave the inline frame?
 
 [Excuse my nomenclature e.g. control, leave]
 
 Todd
 
 --
 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] Inline Frame and php

2005-03-01 Thread Mikey
  Is there a way to leave the inline frame?

You could get your script to write some JavaScript instead of the header
along the lines of:

window.parent.document.location = mypage.php;

(This is not tested, and YMMV...)

HTH,

Mikey

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Inline Frame and php

2005-03-01 Thread Joe Harman
Hey Todd... I really think what you are going to have to do is pass a
javascript variable to the parent page.. cause you are trying to send
a variable from the php search page to the parent that has the iframe
in it... I am correct in assuming that?


On Tue, 1 Mar 2005 16:33:58 -, Mikey [EMAIL PROTECTED] wrote:
   Is there a way to leave the inline frame?
 
 You could get your script to write some JavaScript instead of the header
 along the lines of:
 
 window.parent.document.location = mypage.php;
 
 (This is not tested, and YMMV...)
 
 HTH,
 
 Mikey
 
 --
 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



[PHP] Inline Frame and php

2005-02-28 Thread Todd Cary
My client insists on using inline Frames that uses my php pages.  As an 
example, this is on one page:

IFRAME target=_top frameborder=0 
SRC=search.php?search_text=?echo($search_text);? WIDTH=592 HEIGHT=282
/IFRAME

This works well with the control being given to search.php.  What I do 
not understand is that within search.php, I have a statement that is 
suppose to pass control to anther page.  The line is

header(location: http://192.168.0.23/mypath/mypage.php;);
Rather than going to the page, it opens mypage.php in the inline frame.
Is there a way to leave the inline frame?
[Excuse my nomenclature e.g. control, leave]
Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php