note 31318 added to function.header

From: Date: Thu, 17 Apr 2003 10:00:38 +0000
Subject: note 31318 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-46726@lists.php.net to get a copy of this message
If you try to redirect your page with the Header instruction, as: Header('Location: http://www.spaccawarrant.it/index.html'); and this is done inside one of your page frames, the page you asked for will be opened inside that frame. How to get on the _top page? I found no solution with php, but with a very simple javascript: Just call a very short page with this small javascript inside <html> <body> <SCRIPT LANGUAGE="JavaScript"> top.location.replace ('http://www.spaccawarrant.it/index.html') </SCRIPT> </body> </html> and you'll be able to clear all frames! -- http://www.php.net/manual/en/function.header.php http://master.php.net/manage/user-notes.php?action=edit+31318 http://master.php.net/manage/user-notes.php?action=delete+31318 http://master.php.net/manage/user-notes.php?action=reject+31318

« previous php.notes (#46726) next »