比如是这样:
<form id="form1" name="form1" method="post" action="get.php?a=1&b=2#034&c=3">
<label>
<input type="submit" name="Submit" value="提交" />
</label>
</form>
我提交以后,用print_r($_GET)只能看到Array ( [a] => 1 [b] => 2 ) ,b不全,而且c得不到值,现在就像问下如何可以取到全部数据?
还有,数据传入的部分改不了的,只能在取数据的时候想想办法了。。
<form id="form1" name="form1" method="post" action="get.php?a=1&b=2#034&c=3">
<label>
<input type="submit" name="Submit" value="提交" />
</label>
</form>
我提交以后,用print_r($_GET)只能看到Array ( [a] => 1 [b] => 2 ) ,b不全,而且c得不到值,现在就像问下如何可以取到全部数据?
还有,数据传入的部分改不了的,只能在取数据的时候想想办法了。。
试试?
action=escape("get.php?a=1&b=2#034&c=3")
试试这种方法是否可行
浏览器发的是以下内容:
GET /get.php?a=1&b=2
Accept HTTP/1.1
Accept-Language zh-cn
Accept-Encoding:gzip, deflate
Host:localhost可以看出,浏览器发送的请求中已经把#后面的去掉了
但是可以用js在客户端获取,再提交下
<script>alert(location.hash)</script>"