Re: General use of rewrite / redirect

From: Date: Tue, 18 Mar 2008 13:09:57 +0000
Subject: Re: General use of rewrite / redirect
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-271711@lists.php.net to get a copy of this message
Aschwin Wesselius wrote: > I've seen form processing being done, when finished it gets a header > redirect to a 'succes' page. Yes, that's a very typical setup. When the form is processed, you send a 303 redirect to the "Thank you" page. That way, if the user hits the "back" arrow, he's taken back to the form URL, not the post URL. (which would then warn him about re-submitting etc.) > What is your opinion about (ab)using rewrites / redirects? Do you use > it quick and dirty, or is it some elegant way of controlling flow? I think there are plenty of perfectly valid reasons for using a redirect, whether dynamically from php or via an apache config. And undoubtedly there equally many poor reason for using redirect and/or rewrite. (they're very different things, by the way). /Per Jessen, Zürich

« previous php.general (#271711) next »