note 80372 added to function.header
| From: | Drew_Benton at osu1 dot php dot net | Date: | Sat, 12 Jan 2008 18:48:18 +0000 |
| Subject: | note 80372 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135054@lists.php.net to get a copy of this message | ||
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!
----
Server IP: 208.69.120.35
Probable Submitter: 24.27.66.32
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- https://master.php.net/note/edit/80372
Del: integrated -- https://master.php.net/note/delete/80372/integrated
Del: useless -- https://master.php.net/note/delete/80372/useless
Del: bad code -- https://master.php.net/note/delete/80372/bad+code
Del: spam -- https://master.php.net/note/delete/80372/spam
Del: non-english -- https://master.php.net/note/delete/80372/non-english
Del: in docs -- https://master.php.net/note/delete/80372/in+docs
Del: other reasons-- https://master.php.net/note/delete/80372
Reject -- https://master.php.net/note/reject/80372
Search -- https://master.php.net/manage/user-notes.php