Question about $_GET Function

so i read here : http://www.w3schools.com/php/php_get.asp
that the $_GET function only allows max 2000 characters
but my question is what if i used 2 $_GET functions ? like

[php]

<? echo $_GET['a']; echo $_GET['b']; ?>

[/php]
will it work if i used

.php?a=(2000char)&b=(2000char) ???

thanks in advance

  1. $_GET is not a function, it is a global array created by the PHP engine to hold the parameters supplied in the query string of a url.

  2. The limit on how much data you can pass is not a PHP issue. There is no maximum url length in the specification, so the browser and the web server are permitted to work it out however they want. There may be modifiable settings in the web-server’s configuration, however, a visitor’s browser is NOT going to send more than that browser supports. It is commonly accepted that the limit is “around 2,000”.

If you really need to pass that much information from a FORM, you should use POST instead of GET. The limit on POST data is higher.

Im not using a webbrowser , im using programming language to do http webrequests and get the response
So will that work if i used a webbrowser?

Sponsor our Newsletter | Privacy Policy | Terms of Service