?
Solved

HTML form - GET method max size

Posted on 2005-04-26
4
Medium Priority
?
614 Views
Last Modified: 2011-09-20
Hello,

I have a javascript function which pass some form's variables to a php script opened into a pop up window.
I've used method GET (window.open("...","...","...")) since I want my pop up window without tollbar, locationbar,... (Otherwise I would have used method="POST" and target="_blank" into my form).
The arguments which are passed to the php script increase with time. So into few time I will reach a size of 1024 byte (I've read that it is the max size of arguments  which can be passed with method get).
Assuming that we have full control over the server, is there a way to encrease the "max (get method) argument size" (this 1024 byte).

thanks.
0
Comment
Question by:test75
  • 2
  • 2
4 Comments
 
LVL 27

Accepted Solution

by:
Diablo84 earned 500 total points
ID: 13866044
As i recall the query string limit varies from browser to browser and nothing you can do server side will change the limit as it is browser dependant.

Unless it is essential to use the query string you might instead consider storing the data in session variables, eg:

session_start(); //initialize the session data

$_SESSION['myvar'] = "a value";

You will then be able to access the data on other pages (as long as session_start(); is present at the top of the page) simply using:

echo $_SESSION['myvar'];

Diablo84
0
 
LVL 1

Author Comment

by:test75
ID: 13866140
>> nothing you can do server side will change the limit as it is browser dependant

As a mere information on I.E. 6.0 do you know this limit?
0
 
LVL 27

Expert Comment

by:Diablo84
ID: 13866197
According to: http://support.microsoft.com/kb/q208427/

the limit is: 2,083 characters

That said in the past i have heard variations of this, 1000 characters, 255 characters. It's not very well documented information.
0
 
LVL 1

Author Comment

by:test75
ID: 13866270
thanks
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month14 days, 9 hours left to enroll

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question