|
Posted by Josh Whiting on 03/25/05 18:28
> 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
Navigation:
[Reply to this message]
|