当前位置:Gxlcms > PHP教程 > php中的$_GET如何获取带有“#”的参数

php中的$_GET如何获取带有“#”的参数

时间:2021-07-01 10:21:17 帮助过:1人阅读

  1. <!--?phpecho $_GET['key'];?-->

当url为http://test.com/c.php?key=999时,正常输出:999

当url为http://test.com/c.php?key=9#888时,只能输出:9

而我想要获得的是9#888,那要怎么办呢?只能在把9#888传递给key的这个环节想办法。

  1. <input placeholder="输入SN码" type="text" id="searchs" name="searchs">查询

人气教程排行