To avoid seeing "confirmation of form submission" box... |
[eluser]veledrom[/eluser]
Hi, To avoid seeing "confirmation of form submission" box when we use F5 or Back button on browser after form submission, what should I do? It should also enable me to use "form validation" helper and "set_values" functionality for input areas in the form. Like how they do on this forum. When we login, we never see that annoying "confirmation of form submission" box when we use F5 or Back button on browser. Thanks
[eluser]Clooner[/eluser]
Because after the form submission there is a redirect!
[eluser]veledrom[/eluser]
If I use redirect(), I cannot display validation_errors() and set_value() in actual page if validation fails.
[eluser]CroNiX[/eluser]
Send no cache headers on the page with the form. Then it won't get cached. Here's a helper function I use: Code: function send_no_cache_headers() As far as the redirect issue, you could store the validation errors in session.
[eluser]veledrom[/eluser]
After successful login, If I go back and forward, I don't see the login form page nor submission confirmation popup. That's fine. However, if I fail to login and, go back and try to go forward again, I'm asked to confirm submission again. Do I miss anything below? Thnaks LOGIN FORM Code: <div id="div_box"> CONTENT OF login CLASS Code: public function stop_caching()
[eluser]veledrom[/eluser]
Problem solved in http://ellislab.com/forums/viewthread/217176/ |
Welcome Guest, Not a member yet? Register Sign In |