> <?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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php