当url为http://test.com/c.php?key=999时,正常输出:999
当url为http://test.com/c.php?key=9#888时,仅仅能输出:9
而我想要获得的是9#888,那要怎么办呢?仅仅能在把9#888传递给key的这个环节想办法。
查询
假设是通过php的header()跳转传递带“#”的參数的话:
a.php
'66#77'));// var_dump($query); //string 'key=66%2377' (length=11)header("location:http://test.com/b.php?$query");?>b.php