简体   繁体   中英

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.

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

there are to ways to solve this question...

  1. using GET instead of POST method...

  2. using Ajax..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM