Re: Still executing afte die()?
| From: | Jason Wong | Date: | Sat, 04 Jan 2003 05:01:53 +0000 |
| Subject: | Re: Still executing afte die()? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130205@lists.php.net to get a copy of this message | ||
On Saturday 04 January 2003 11:00, Leif K-Brooks wrote:
> But it shouldn't get to the database insert because of the redirect
> either... I only added the die; when it still inserted with the redirect.
As you have already found out, the code _does_ continue to execute after the
header() redirect.
Try this:
if (not_lowercase) {
insert_into_db();
header();
die();
}
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
because of network lag due to too many people playing deathmatch
*/