Anusha
Anusha

Reputation: 175

Back to previous page in e-commerce site

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.

Upvotes: 0

Views: 128

Answers (2)

Siren
Siren

Reputation: 446

there are to ways to solve this question...

  1. using GET instead of POST method...

  2. using Ajax..

Upvotes: 0

FatalError
FatalError

Reputation: 964

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

Upvotes: 2

Related Questions