PDA

View Full Version : anti-refresh submit form ?



OKtrust
March 17th, 2004, 03:54 AM
hi all.
when we have a form for user submit information, that is written by php
because var is renember after we submit, so when we refresh that form, it will save again
how to avoid this ? please tell me guys, thanks

blindlizard
March 17th, 2004, 04:54 AM
Post to a different page, and then redirect back. This way the page that got posted to will not be able to be refreshed. This forum kind of does that, but insted of redirecting from the server, it uses meta redirect in the HTML.

OKtrust
March 17th, 2004, 04:59 AM
yes, I try on using session but there is some problem, I thing your idea is a good solution :d merci