how can stop Resubmitting  form 

how can stop Resubmitting  form 

  
when i submit a form data successfully in database and after forward on another listing page of that page, it display successfully add new entry in listing. But when i simply refresh page, another last entry will automatically add in DB.
When you hit the refresh in the browser, it simply re-executes the last request made by the browser.  In your case the last request submitted by the browser is the form submission. 

I assume you are subitting the form data via an ajax submit action with a refresh at the end.  You can try to do a redirect (destination) at the end of your action instead.  Set the destination to the same (current) page. This way you are effectively reloading the page after the data is added, which resets the html form and adds another entry to the browser history.


Izak's answer is the best approach I have found as well.

J.Ja