note 19605 deleted from ref.http by sander

From: Date: Sun, 07 Apr 2002 12:39:46 +0000
Subject: note 19605 deleted from ref.http by sander
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-28895@lists.php.net to get a copy of this message
It is better to use this for automatic redirecting with no delay: header("Location: http://some.server.com"); The reason it's better is because if you use a <meta http-equiv="redirect"...> tag, the user will not be able to correctly use the browser's Back button. If they click the Back button after a <meta> redirect, the browser will return them to the redirect page, where they will be unwillingly redirected. Using the header() function avoids this. If the user clicks the Back button when header() was used, the browser will correctly take them back to the page *prior* to the redirect page, just as they would want.

« previous php.notes (#28895) next »