我可以在 link 上使用多少个参数?
How many parameters get can I use on a link?
我在通过 $_GET[' ']
接收信息时遇到了一些问题。
我向 PHP 文档发送请求,例如
procura_plano.php?plano='+plano+'&operadora='+operadora+'&contrato='+contrato+'&idade='+idade+'&acomo='+acomodacao+'&valor='+valor
因为我正在使用 javascript 来发出请求。但最后一个值似乎没有设置。我可以通过 link 传递的参数有限制吗?
对不起我的英语:/
Please note that PHP setups with the suhosin patch installed will have
a default limit of 512 characters for get parameters. Although bad
practice, most browsers (including IE) supports URLs up to around 2000
characters, while Apache has a default of 8000.
To add support for long parameters with suhosin, add
suhosin.get.max_value_length = <limit>
in php.ini
有关更多信息,请查看此 link or URL parameters- Stack Overflow
What w3 Schools say is: Yes, when sending data, the GET method adds
the data to the URL; and the length of a URL is limited (maximum URL
length is 2048 characters)
我在通过 $_GET[' ']
接收信息时遇到了一些问题。
我向 PHP 文档发送请求,例如
procura_plano.php?plano='+plano+'&operadora='+operadora+'&contrato='+contrato+'&idade='+idade+'&acomo='+acomodacao+'&valor='+valor
因为我正在使用 javascript 来发出请求。但最后一个值似乎没有设置。我可以通过 link 传递的参数有限制吗?
对不起我的英语:/
Please note that PHP setups with the suhosin patch installed will have a default limit of 512 characters for get parameters. Although bad practice, most browsers (including IE) supports URLs up to around 2000 characters, while Apache has a default of 8000.
To add support for long parameters with suhosin, add
suhosin.get.max_value_length = <limit>
in php.ini
有关更多信息,请查看此 link or URL parameters- Stack Overflow
What w3 Schools say is: Yes, when sending data, the GET method adds the data to the URL; and the length of a URL is limited (maximum URL length is 2048 characters)