开发者

URL quoting characters inside the value of a hidden input

开发者 https://www.devze.com 2023-03-12 12:35 出处:网络
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 in

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

精彩评论

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