doukun8944 2018-06-18 11:26
浏览 55

如何使用page.php?secondpage链接到php文件中的页面

I'm looking to divide up my page into smaller sections for ease of organising my content. Other websites I've seen have used the system of having the main page url then a question mark and the next page name after it (eg. www.website.com/page.php?secondpage)

For what I want to achieve, see an example here (under collecting, current, etc). For my current page, see here.

Thanks for your help!

  • 写回答

1条回答 默认 最新

  • doujiu9172 2018-06-18 12:22
    关注

    you can try like this in your html a href="page.php?collections">collections

    in your php code, you can write

    <?php if($_SERVER["QUERY_STRING"] == 'collections'){ ?>
    
    //second page code goes here
    
    <?php } ?>
    
    评论

报告相同问题?

悬赏问题

  • ¥15 关于#java#的问题:找一份能快速看完mooc视频的代码
  • ¥15 这种微信登录授权 谁可以做啊
  • ¥15 请问我该如何添加自己的数据去运行蚁群算法代码
  • ¥20 用HslCommunication 连接欧姆龙 plc有时会连接失败。报异常为“未知错误”
  • ¥15 网络设备配置与管理这个该怎么弄
  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!