Re: How to prevent duplicate record insertion after refreshing php page

From: Date: Wed, 19 May 2010 12:30:04 +0000
Subject: Re: How to prevent duplicate record insertion after refreshing php page
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-305324@lists.php.net to get a copy of this message
On 19 May 2010 14:23, Deva <devendra.in@gmail.com> wrote: > Yeah... Done... Got the solution... > You need to do exit(0); after the header().. > die() wont work... > That's rather odd, according to the docs die() and exit() are equivalent. You're sure nothing else changed? Also, note that you should consider using form tokens, so you don't get caught by double submits and cross site form posts, etc. Regards Peter -- <hype> WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 </hype>

« previous php.general (#305324) next »