Forum Moderators: coopster

Message Too Old, No Replies

method = "post"

how many variables

         

malcolmcroucher

6:23 pm on Dec 6, 2007 (gmt 0)

10+ Year Member



how many variables can you pass through the method="post" in html forms with php.

If you can only post a certain number what do you do if you want to post more?

my form keeps getting stuck at a certain point and i am wondering if this is the reason.

PHP_Chimp

7:59 pm on Dec 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Although I dont know if there is a maximum number of post variables that can be set I have never reached it.
I would assume that the amount of post variables that PHP would accept would be down to the amount of memory available on the server for php. If your form is sending more that 128M of form data then php is likely to die. There is a memory limit section in php.ini [uk2.php.net] and the default is 128M. Default was 8M in lower than 5.? (2 I think)...just check to see if this is the problem.

[edited by: PHP_Chimp at 8:02 pm (utc) on Dec. 6, 2007]

malcolmcroucher

8:41 pm on Dec 6, 2007 (gmt 0)

10+ Year Member



thanks ,

Ill have a look.
My proble must be something else then.

lammert

12:38 am on Dec 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



There is no limit on the number of POST variables, but there is a limit on the buffer that stores the header of the HTTP request used to store the POST variables.

On IIS 4.0 this header was 2MB long, but on IIS 5.0 the header length was brought back to 128 kB. With Apache the length is even more restricted. On 2.2 (don't know the specifics of older Apache versions) the length of HTTP headers is restricted by the LimitRequestFieldsize setting in the httpd.conf server configuration file. The default maximum HTTP header length is 8190 bytes.

So the webserver is the bottleneck, not PHP.

Achernar

12:45 am on Dec 8, 2007 (gmt 0)

10+ Year Member Top Contributors Of The Month



POST variables are not in http headers, but in the body of the request.

[edited by: Achernar at 12:46 am (utc) on Dec. 8, 2007]

lammert

3:13 am on Dec 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Oops! Mixed up GET and POST...

henry0

12:14 pm on Dec 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's why GET and Ajax are best friends