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

From: Date: Wed, 19 May 2010 12:38:15 +0000
Subject: Re: How to prevent duplicate record insertion after refreshing php page
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-305325@lists.php.net to get a copy of this message
wtf now its working for die() also.. weird need to figure out what happened... On Wed, May 19, 2010 at 6:00 PM, Peter Lind <peter.e.lind@gmail.com> wrote: > 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> > -- Devendra Jadhav देवेंद्र जाधव

« previous php.general (#305325) next »