Re: Targetted redirection?

From: Date: Fri, 15 Mar 2002 17:03:22 +0000
Subject: Re: Targetted redirection?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88675@lists.php.net to get a copy of this message
> <?php > # Turning this on will jump this page out of the frames. > # header('Window-target: _top'); > ?> Can you use this only for the predefined variables? _top, _parent, etc? Because it isn't working for me. Perhaps I am misunderstanding something. Here are my sample files: index.php /****************************/ <html> <head><title>index page</title></head> <frameset COLS="120,*"> <FRAME SRC="left.php" name="menu" scrolling="no"> <frame src="left.php" name="content"> </frameset> </html> /****************************/ left.php /****************************/ <script language="php"> if( isset( $submit )) { header( "Window-target: content" ); header( "location: right.php" ); exit(); } </script> <html> <head><title>left page</title></head> <body> <form action="left.php" method="post"> <input type="text" name="test"> <input type="submit" name="submit" value="Submit"> </form> </body> </html> /****************************/ right.php /****************************/ <html> <head><title>right page</title></head> <body> you got redirected here </body> </html> /****************************/ Am I misunderstanding something? Or doesn't that header work this way? Thanks for any insight you might give! Chris

« previous php.general (#88675) next »