Prevent duplicate record insert on manual page refresh

vadimskorohod

New Member
I have a problem which has only just surfaced itself.I'm working in a MVC environment. The method names in my interface class match those of the request module and action i.e. \[code\]?module=test&action=action\[/code\] would result in a method called \[code\]public function test_action() { }\[/code\]In this particular problem, I have a form which submits to itself. If validation passes, a record is created and I then show the template of another module. This module expects a series of post variables as it is used in two modules.The problem I'm having is that, if the user successfully passes the validation and attempts to F5 the page, another new record is created etc. How can I prevent this from happening?Normally I would header redirect after a successful insert but in this instance I can't.
 
Back
Top