1. Home
  2. Windows Tips
  3. Confirm form resubmission on refresh

How to fix Confirm form resubmission on refresh error

If you’re filling out a form online, and the form involves a custom answer that you’ve typed directly into the browser, it’s a good idea to copy and save it to a file before you submit the form. This is because if the form submission fails, for whatever reason, the data you’ve entered can be lost. Some forms save the information a user enters while others do not. 

Confirm form resubmission on refresh

Fix Confirm form resubmission on refresh

The Confirm form resubmission on refresh error means when you submitted the form, the information wasn’t sent to the server it was meant to be submitted to. This may be a problem on your end e.g., you’re not connected to the internet or your internet connection is unstable and break before the information can be sent. It may be a problem on the website’s end i.e., the server isn’t responsive, it takes too long to parse the data, the server is expecting different data, etc. 

In some cases, the Confirm form resubmission on refresh error can be fixed by a user but in other cases, they may be a problem with the website and you’ll need to contact the web admin. Try the fixes below as an end user to resolve the error.

1. Check browser session 

Your browser’s session may be one reason you’re seeing the Confirm form resubmission on refresh error message. The message can appear in any browser with slightly different language however make sure;

  • You are not using an incognito browsing window
  • You do not manually refresh the form after clicking on submit/send
  • You do not have apps or extensions installed that may interrupt the session e.g. a VPN, a network traffic monitor, a proxy, a useragent switcher, etc.

It is worth using a different browser than the one you’re using if the error persists. Use a modern browser like Chrome or Opera instead of using Firefox or Safari. If you’re seeing this error on a mobile browser, switch to a desktop browser.

2. Clear browser data and resubmit

The Confirm form resubmission on refresh problem may be on the server end in that the server is under heavy load where too many forms are being submitted at the same time that you’re submitting it. You can try waiting until the server isn’t overloaded but in the mean time, clear your browser data and try submitting the form again.

Chrome

To clear the browser data in Chrome;

  1. Open Chrome.
  2. Click the more options button at the top right and select Settings.
  3. Under Privacy and Security, click Clear browsing data.
  4. Select Cookies and other browsing data, and Caches images and files.
  5. Click Clear data.

Firefox

To clear the browsing data in Firefox;

  1. Open Firefox.
  2. Click the more options button at the top right and select Settings.
  3. Go to Privacy and security.
  4. Click Clear data.
  5. Select Cookies & site data, and Cached Web content.
  6. Click Clear Data and restart the browser.
  7. Submit the form again.

3. Disable browser extensions

Browser extensions may interfere with the browser session and form submission. If you think there’s nothing wrong with the form, or the website you’re submitting on, disable all the extensions that are installed and try again.

Chrome

To disable extensions in Chrome;

  1. Open Chrome.
  2. Click the more options button at the top right and select More tools>Extensions.
  3. Turn the switch next to each extension off.

Firefox

To disable add-ons in Firefox;

  1. Open Firefox.
  2. Click the more options button at the top right and select Add-ons and themes.
  3. Turn the switch next to each add-on off.

4. Fix Confirm form resubmission on refresh for website admins

These fixes apply if you can edit the code of the form. The Confirm form resubmission on refresh appears in one of two cases, provided your server is not experiencing problems.

POST vs GET

PHP forms can submit data in one of two ways; POST or GET. If you use the POST method, you will encounter the Confirm form resubmission on refresh error whereas you will not see it with the GET method.

This means that there is a problem with how the POST command has been added to the form, or the user is refreshing the form before submitting it. The POST method should only be used if necessary e.g. with password reset fields and not for ordinary form fields. 

Disable confirm resubmission in browser

Browsers may use their own form checks. This is normally a feature but you can force the page to ignore the browser’s check. In order to do this, you can use an AJAX form. You will still be able to use the POST function with it if you do not want to switch to GET.

Conclusion

The Confirm form resubmission on refresh error is likely to appear if you refresh a form before you submit it. If you see the error when you submit a form, it is more than likely that the problem is on the server end. It may not be in your power to fix it.