472,143 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

$_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 8202
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 Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.