Confirm Form Resubmission Error in Chrome

We are living a life where the Internet made our life simple to do stuff. There may be some days which are stressful and if in those days while working you may get Confirm Form Resubmission error on your page leads to more stress. You will end up thinking that you’re going through some bad days and try to attempt many ways to solve the Confirm Form Resubmission error. So, here we are for you with the solutions.

As we all know, Google Chrome is a widely used web browser. They said all good things don’t come under one package. So, although Chrome can support many extensions, it has some bugs. Amongst many, Confirm Form Resubmission is the common error.

How to Fix Confirm Form Resubmission Error

Fortunately, there are ways to tackle Confirm Form Resubmission Error. Below given are some of the methods to solve Confirm Form Resubmission error.

Solution 1 — Check Internet Connection

You might be struggling how to solve the error and dealing with the above methods, and you realize that you lost your Internet Connection, which is quite awful. So, check your Internet connection before you start.

Solution 2 — Using Google Chrome Properties

1. Right-click on the Shortcut icon of Google Chrome at the start, a menu appears select on the Properties option.

2. You will find a field named Target in the drop-down properties.

3. Now, by adding disable-prompt-on-repost” at the end of the target can be used to solve the error.

The desired target for me is:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"

4. So, Finally, the target to be entered in the field is:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"–disable-prompt-on-repost

5. At the end, Turn off the chrome if it is already open and re-open the Google Chrome and check if you still get the error.

Solution 3 — Clear Google Chrome Browsing Data

1. Open Google Chrome

2. Click on the three vertical dots situated at the top right corner of your browser.

3. Select More tools from the menu then click on Clear Browsing Data.

4. Go to the Advanced tab and delete the data you want.

5. Now, click on Clear Data.

6. Re-open Google Chrome and check if the changes took place or not.

Solution 4 — Reset Chrome Browser Settings

1. Open Google Chrome.

2. Click on the three vertical dots situated at the top right corner of your browser.

3. Select settings from the menu.

4. Search Reset and clean up in the search box, Otherwise click on the three vertical lines placed at the top left corner. Select the Advanced Settings and Choose Reset and clean up.

5. Now, Open-Reset and clean up and then select Restore settings to their original defaults.

6. Click on Reset settings and restart Google Chrome.

Method 5 — Disable Motion Across the Browser

1. Open Google Chrome

2. Click on the three vertical dots situated at the top right corner of your browser.

3. Select settings from the menu.

4. Search Privacy and security in the search settings box, or you can click on the three vertical lines placed at the top left corner. Select Advanced Settings and Choose Privacy and security.

5. Now, Open Site settings and disable Motion or Light Sensors.

6. Re-open Google Chrome and check if the changes took place or not.

Solution 6 — Disable Corrupted Extensions

1. Open Google Chrome.

2. Click on the three vertical dots situated at the top right corner of your browser.

3. Select More tools from the menu then click on Extensions or type chrome://extensions in the search box.

4. Disable the corrupted Extension from the list and re-enable again.

5. Click on Reset settings and restart Google Chrome.

Solution 7 — Replacing the POST Method

The POST method helps to post the data directly on the server, and it ensures the end to end transfer of data. While in the case of the GET method, there is no confidentiality of the data transferred. So, generally, the GET method is not used with the forms. Thus, the conclusion is if your page is such that you are allowed to modify data on the page, the POST method should be replaced by GET method.

The following steps will help you to remove the POST URL and replace it with the GET method.

1. Open the page you’re working on.

2. Right-click on the page, and a menu appears, click on the “View page source.” You will get the code of your page.

3. Add GET code in your page code and remove POST from the URL.

//Remove POST

<form action=”index.php?load=SEARCH” method=”post”>

//Use GET

<form action=”index.php?load=SEARCH” method=”get”>

4. After adding the GET method, you’re good to go.

Solution 8 — Use the PRG Pattern

Using the PRG pattern we create a page between the page at the server and the actual page we’re working on. It helps by not posting the data directly on the server.

PRG stands for POST/Redirect/GET pattern. Do the required changes on that page and then send it to the server. The final action the server will receive is the GET method instead of POST.

1. Open the page you’re working on.

2. Right-click on the page, and a menu appears, click on the View page source. You will get the code of your page.

3. Add this below code in your page code.

if(!empty($_POST[‘username'] && !empty($_POST[‘password'])) {

$user = new User;

$user->login($_POST[‘username'], $_POST[‘password']);

if ($user->isLoggedIn()) {

header("Location: /admin/welcome.php");

exit;

}

else {

header("Location: /login.php?invalid_login");

}

}

4. After adding the code you’re good to go.

Solution 9 — Using AJAX submit Button

1. Open the page you’re working on.

2. Right-click on the page, and a menu appears, click on the “View page source.” You will get the code of your page.

3. Add this below code in your page code

 $.ajax({
type: "POST",
URL: "bin/validation.php"
data: dataString,
success: function(){
//Whatever you want to do on successful submission
}
});
return false;

4. After adding, you’re good to go.

Solution 10 — Adding a Tag Inside <head> Part

1. Open the page you’re working on.

2. Right-click on the page, and a menu appears, click on the “View page source.” You will get the code of your page.

3. Add this below code in your page code

<meta http-equiv="refresh" content="60; write_the_url_of_the_page_to_be_tested_over_here.html" />

4. After adding, you’re good to go.

Solution 11 — Delete no-store

This error may occur if your code consists of the header with this code: header(‘Cache-Control: no-store, no-cache, must-revalidate, max-age=0′); By deleting (‘no-store’) from the header, your error can be solved. The following are the steps to solve Confirm Form Resubmission.

1. Open the page you’re working on.

2. Right-click on the page, and a menu appears, click on the “View page source.” You will get the code of your page.

3. Delete code (‘no-store’) from the header in your page code.

3. After deleting refresh the page and you’re good to go.

The End

These are the several methods to solve Confirm Form Resubmission, which appears on Google Chrome. I hope these methods will help you for sure.

Leave a Reply