There is a table in several lines. I click edit - the form opens. I edit ... I click Submit - I pass on the table. Everything is working...

BUT when you refresh the page (where the table) pops up a window: "On the page you are looking for, the information you entered was used. When you return to this page, you may need to repeat previous steps. Continue?"

What should be done to prevent this window from appearing?

1 answer 1

The "Save" button -> POST-request to save -> after saving, we do not show anything, but redirect to the next page, where the table is simply displayed.

This pattern is called PRG ( POST-Redirect-GET ).

  • Thank. I thought so ... Although I hoped that there was some more cunning way))) And then it turns out that there is even a whole pattern for this! - sitev_ru
  • @sitev_ru, If you are given an exhaustive answer, mark it as correct (click on the check mark next to the selected answer). - Sergiks