【发布时间】:2011-03-10 20:55:05
【问题描述】:
我该怎么做?
我有一个变量集
if (!isset($_GET['ago']))
我想在点击这个时将它加一
if (isset($_GET['tod']) && $_GET['tod'] == 'overnight') {
print ++$_GET['ago'];
}
所以如果它被点击,我想要'http://xxxguide?tod=overnight
实际上看起来像 'http://xxxguide?ago=1&tod=overnight
每次点击“隔夜”时,“前”都会增加 1,所以
http://xxxguide?ago=2&tod=overnight http://xxxguide?ago=3&tod=overnight 等
【问题讨论】:
-
改用
$_SESSION存储ago! -
你想重定向页面还是什么?