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

From: Date: Fri, 25 Mar 2005 16:28:15 +0000
Subject: Re: header("Location: page.php target=_parent")?????
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-211579@lists.php.net to get a copy of this message
> 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

« previous php.general (#211579) next »