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

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

 



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>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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