Passing PHP GET strings longer than 2`000 chars?

michaelsanford

Translator, Web Developer
I understand that passing forms using GET to a PHP script with a URL that's longer than 2`000 characters can be problematic.

Is this the case? If so, is there another way I can pass the form to a script? How would the POST method work?

Thanks!
 
I personally thought GET is limited to 256 characters, including host and so on. Anyway, anything more could give you problems at least with some routers or servers.

For big form data, definitely use POST.
It is there for transferring data to the server, whereas GET is intended, well just to get another page.

I use POST everytime I use forms, even for really small things.
 
if you don't use something in your code like $HTTP_GET_VARS, then you won't need to make any changes.

If you get the values of your form fields like %fieldname, than it won't make any difference it you POST it or GET it.
 
Really!

Yeah, I'm referencing them by $Var_name.

So why would there be such a method as GET, aside from the ability to copy and paste URLs (or is that the only benefit to GET)? ;)
 
Back
Top