469,921 Members | 2,221 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,921 developers. It's quick & easy.

$_POST limit?

Hi...

I have a form with almost 500 input text boxes.

It seems like the $_POST variable's limit is 200 boxes, as print_r only
gave me 200 elements.

Has anyone else encountered this? It would be great help. Thanks.

Jul 17 '05 #1
5 8062
bi*******@gmail.com wrote in news:1113524793.299066.249070
@g14g2000cwa.googlegroups.com:
Hi...

I have a form with almost 500 input text boxes.


do elaborate!!! 500 input text boxes!??!
Jul 17 '05 #2
Good Man wrote:
bi*******@gmail.com wrote in news:1113524793.299066.249070
@g14g2000cwa.googlegroups.com:

Hi...

I have a form with almost 500 input text boxes.

do elaborate!!! 500 input text boxes!??!

Sounds like he he/she works for the Internal Revenue Service
Jul 17 '05 #3
Why don't you try to split the form in multiple pages?

http://www.DevPlug.com --Connecting Developers
Posted from: http://www.devplug.com/ftopic21886.htm
Jul 17 '05 #4
On 14 Apr 2005 17:26:33 -0700, bi*******@gmail.com wrote:
I have a form with almost 500 input text boxes.

It seems like the $_POST variable's limit is 200 boxes, as print_r only
gave me 200 elements.

Has anyone else encountered this? It would be great help. Thanks.


Just tried it with 5000, with no problem.

Do you get any errors?

<?php
if (isset($_POST['input']))
{
print "<pre>";
print_r($_POST['input']);
print "</pre><hr>";
}
?>
<form method='post' action='test.php'>
<?php
for ($i=0; $i<5000; $i++)
print "<input type='text' name='input[$i]' value='$i' size='4'>\n";
?>
<input type='submit'>
</form>

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #5
There is no such limit however there is the post_max_size directive,
and web servers can also limit such sizes (size in bytes, not number of
elements). And who knows, maybe your home computer just ran out of
memory :)

Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Cal Lidderdale | last post: by
10 posts views Thread by Dave Smithz | last post: by
2 posts views Thread by Bartosz Wegrzyn | last post: by
2 posts views Thread by bigoxygen | last post: by
10 posts views Thread by Vic Spainhower | last post: by
reply views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.