编辑链接接受类别id和页数 [英] Edit the link to accept the id of category and the number of page
本文介绍了编辑链接接受类别id和页数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用下面的链接打开类别
I use below link to open the category
onclick="location.href = 'categories/topics_categories.php?id=13';"
我使用下面的链接对我的页面进行分页
and i use below link to make paging to my pages
for ($i=1; $i<=$total_pages; $i++) {
echo "<a href='topics_categories.php?page=".$i."'>".$i."</a> ";
}
我想编辑链接以接受类别的 id 和页数,有什么想法吗?
I want edit the link to accept the id of category and the number of pages , any ideas ?
推荐答案
url 查询字符串中可以添加多个参数,并使用与号(&),只有第一个字段名必须加一个问号(?):
You can add multiple parameters to the url query string with an ampersand sign (&), only the first field name has to be prefixed with a question mark (?):
就你而言
topics_categories.php?id=13&page=1
这篇关于编辑链接接受类别id和页数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文