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.
精彩评论