Re: header("Location: page.php target=_parent")?????

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> How should I formulate the header function to replace the current frameset 
> page with a new one?  I have tried a combination of header("Location: 
> page.php target=_parent"); but I get an error message saying the page does 
> not exist.
>
> Also, can I save a frameset page with a .php extension?  I have tried it out 
> and it seems to work.  Maybe perhaps I should not do this as there  may be 
> some implications later on???

you cannot replace the main frameset using HTTP headers in the
individual frame pages.  HTTP headers do not allow for this because
frames are a feature of HTML, not HTTP. therefore you must use HTML or
javascript techniques to get a single frame to change the overall
frameset.

however, for what it's worth, you can replace the main framset using a
header in the main frameset page itself, if you make that a php script
and use the header() function. (which means the answer to your second
question is yes)

/jw

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux