note 11946 deleted from function.header.php by torben

From: Date: Wed, 14 Mar 2001 20:27:29 +0000
Subject: note 11946 deleted from function.header.php by torben
Groups: php.notes 
Request: Send a blank email to php-notes+get-12398@lists.php.net to get a copy of this message
People usualy use headers for redirection on their scripts. But what if something was already sent before you call a header? I usualt use a little js trick: echo"<html> <head> <script language=javascript> function reload() { var url; url = "$PHP_SELF"; document.location.href = url; } </script> <body onLoad="javascript:reload();"> </body> </html>"; I hope this will help those people that keep asking this thing around php communities.

« previous php.notes (#12398) next »