|
Posted by Alvaro G Vicario on 08/02/05 13:00
*** daemon wrote/escribió (Tue, 02 Aug 2005 08:38:02 GMT):
>> The reason is that when I use a script that, for example, add a row to
>> a database. If for some reason the user refreshes the page, it will add
>> another row. Is it the browser that resends the POST vars when a page
>> is refreshed?
You can unset $_POST variables the same way as regular variables. However,
when user loads a page using the POST method variables are created again:
remember HTTP is a stateless protocol (all connections are independent).
You should redesign your app so user cannot break things when reloading.
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Navigation:
[Reply to this message]
|