Can hyphens be used in query string values?

拈花ヽ惹草 提交于 2019-12-04 02:17:51
Salman A

You are talking about query string parameters which must be encoded using urlencode function:

This function is convenient when encoding a string to be used in a query part of a URL, as a convenient way to pass variables to the next page.

According to the documentation - does not require encoding.

Yes

Hyphens can be used for query string parameter names

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!