0

I am working with e-commerce site, where user can navigate using filters like category, then subcategory, then Brand and finally product. so the process flow is

product.php?catid=1&subcatid=11&brandid=12&prodid=111

Now the problem is, when I am clicking on Back button of browser, it asks for confirm form re-submission. But what I want is, it should directly go to Brand filter. I mean to

product.php?catid=1&subcatid=11&brandid=12

Any kind of help is really appreciated.

Florent
  • 12,310
  • 10
  • 49
  • 58
Anusha
  • 175
  • 3
  • 20

2 Answers2

2

Avoid the form submission using POST method rather use the GET method. Use one of the following method if POST method is necessary.

Preventing form resubmission

Community
  • 1
  • 1
FatalError
  • 922
  • 12
  • 31
0

there are to ways to solve this question...

  1. using GET instead of POST method...

  2. using Ajax..

Siren
  • 446
  • 3
  • 4