Re-submit a form after reload page
Posted: Fri Mar 13, 2009 5:08 am
Hi there.
I have a form in main.php to insert data on a MySQL page. After submit, form action is process.php which inserts data. In the end of this file, it redirects (header()) to main.php again.
I did this to avoid re-submiting data after reload browser, but it isn't working. If I reload browser, data is inserted again.
I could control this with some cookies, but shouldn't it work like this?
Thanks in advance,
Regards,
MP
I have a form in main.php to insert data on a MySQL page. After submit, form action is process.php which inserts data. In the end of this file, it redirects (header()) to main.php again.
I did this to avoid re-submiting data after reload browser, but it isn't working. If I reload browser, data is inserted again.
I could control this with some cookies, but shouldn't it work like this?
Thanks in advance,
Regards,
MP