Re: Using Header() to pass information...
| From: | Stut | Date: | Tue, 25 Apr 2006 17:47:57 +0000 |
| Subject: | Re: Using Header() to pass information... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-234715@lists.php.net to get a copy of this message | ||
Richard Lynch wrote:
If you are doing your sanitization/filtering/validation correctly, you shouldn't even be READING $_POST after the first 3 lines of your PHP code anyway. (Okay, maybe first 10 lines.)The same goes for $_GET data also.
The longer you use header("Location: ...") the more you realize how it's just not a substitute for a well-structured web application. Just my 2 cents.As long as we're throwing foreign money into the ring, I'd just like to say that I make a point of redirecting to another page after a post request, otherwise you get unsightly errors in the browser when the user tries to use the back/forward buttons. Other than in that situation I make sure I do includes rather than redirects. -Stut