开发者

URL quoting characters inside the value of a hidden input

Say I have a form whose action target expects a value with spaces in it. If I were typing the request out manually as a URL, I'd use %开发者_StackOverflow20 to escape the spaces. If I use a hidden input for this parameter instead, should the value contain the spaces themselves, or the URL quoted %20 sequences?


Spaces! Let the browser HTML-escape the values for you on form submission.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜