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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> wrote:

> On 19 May 2010 14:23, Deva <devendra.in@xxxxxxxxx> 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
देवेंद्र जाधव

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux