Home  >  Article  >  Backend Development  >  A链接打开后为什么参数在后面累加

A链接打开后为什么参数在后面累加

WBOY
WBOYOriginal
2016-06-23 14:13:08762browse

php

当前页是第一页index.php?news&p=1
下一页的链接是index.php?news&p=2
点击下一页后链接是index.php?news&p=1&p=2
为什么会累加?

回复讨论(解决方案)

你的代码如何写的?

肯定有个地方相加了,你找下相加的代码地方。在前面用正则去掉之前的参数

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn