note 50588 deleted from function.header by tularis

From: Date: Fri, 20 Apr 2007 14:57:45 +0000
Subject: note 50588 deleted from function.header by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-125673@lists.php.net to get a copy of this message
Note Submitter: ninj at chello dot fr ---- A note about the redirection: the way to redirect is: header ("location: target.php"); and it is advised to add, before, a: header ("HTTP/1.0 307 Temporary redirect"); if the redirection is temporary. But if the redirection occurs after a the submission of a post form, your browser will ask you if you want to keep the post data for the redirected page! This could be very annoying in the case the redirection is wanted. The solution to avoid this browser question is not to add any redirection info header at all. So nor the temporary neither the permanent redirect are to use in the case of a redirection after a post (login page for example).

« previous php.notes (#125673) next »