when a form is filled and send, if you refresh the page, its says that the form will send again. (submit the form again).
What is a good way to prevent this from happening? or kill this session?
any guidance in this?
thank you
when a form is filled and send, if you refresh the page, its says that the form will send again. (submit the form again).
What is a good way to prevent this from happening? or kill this session?
any guidance in this?
thank you
After processing the POST informations, do a
header('Location: your_url');
exit();
If you keep displaying the form there is no reason to prevent this.
Otherwise - i.e. after the form has been submitted successfully - store any messages you need to display in your session and then redirect to whatever page you want to display. This ensures the user is moved away from the POSTed page.