note 80372 deleted from function.header by danbrown
| From: | danbrown@php.net | Date: | Sun, 07 Dec 2008 18:06:24 +0000 |
| Subject: | note 80372 deleted from function.header by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147800@lists.php.net to get a copy of this message | ||
Note Submitter: Drew_Benton
----
The importance of fully reading the docs!
If you do use the location setting of the header to redirect to another page, do not forget to throw
in that "exit;" as the documents say to prevent further execution of script code. This is
critical if you are redirecting to another page in response to an error.
I glazed over this small issue and found a number of "surprises" in my database when
testing my registration system. The only reason I realized I was doing it wrong was when I got an
email from the script saying I had registered when it was erroneous input.
Check all of your header Location's!