dongxing4643 2016-08-17 13:16
浏览 211

PHP:一个URL中有两个GET请求?

Can I use two GET requests in one url.

http://localhost/ecommstore/category_grid.php?pn=1.

Here pn=1 is for pagination. I want here another GET request for sub_category.

Can you please help me that how to do that and separate these two get requests correctly?

  • 写回答

1条回答 默认 最新

  • dongwen5019 2016-08-17 13:17
    关注

    Yes by using & between two parameters. You can write your url like this

    http://localhost/ecommstore/category_grid.php?pn=1&sub_category=sub_categoryName
    

    Here before your first parameter you should write ? and after first parameter you should separate them by &. It works for me. Hope it helps you

    评论

报告相同问题?

悬赏问题

  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 个人网站被恶意大量访问,怎么办
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制