开发者

Short question: Any good way to view a forms querystring?

I have a form which uses the "GET" method.

This might be a stupid question...

I would need to view the full querystring somehow开发者_C百科, of the form when submitting it?

I have Firebug if that would help somehow...

Thanks


In PHP, you can use $_SERVER['QUERY_STRING'].

In Firebug, it's a matter of going to the Network tab and selecting the request. The query string will be in the request line after the first ?.


You can use the window.location.search from javascript or $_SERVER['QUERY_STRING'] from php.


Personally, I use the FireFox extension Tamper Data for this. It's easy to use, and lets you change or view any piece of information about the request prior to its being submitted... I highly recommend it if you want to request parameters on the fly...


For the client side, here is a pretty decent article on parsing in Javascript:

http://support.internetconnection.net/CODE_LIBRARY/javascript_Parsing_Query_String.shtml

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜