Jump to content
xisto Community
Sign in to follow this  
electron

Refresh Problem On Refreshing a Submitted Form

Recommended Posts

Hi, I have great problems about refreshing a page having a Form.When anyone refreshes a submitted form it gets INSERTED Twice in the DB.Is there any strong way to stop this.I know two ways to do it using SESSIONS or redirecting.But its not that Firm.In firefox it does send it again.Also my use is that , that the user may want to use the form again.Please help me.Thanks and have a good day.

Share this post


Link to post
Share on other sites

Use Javascript.if(button.onlick)button.disabled=true;I hope you get the idea.. The above code is not correct, but using event functions, you can disable the submit button once its clicked. :)

Share this post


Link to post
Share on other sites

You can still refresh by pressing F5 or the 'Refresh' button on the taskbar.The only thing you can do is making the form empty after sending or just give a message that the iformation has been sent.Maybe then you have a problem with the 'Back' button.All depends on what you are using on your form :only html + javascript , html + perl or html + php.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.