$_POST limit?

This is a discussion on $_POST limit? within the PHP Language forums, part of the PHP Programming Forums category; Hi... I have a form with almost 500 input text boxes. It seems like the $_POST variable's limit is ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-15-2005
bigoxygen@gmail.com
 
Posts: n/a
Default $_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.

Reply With Quote
  #2 (permalink)  
Old 04-15-2005
Good Man
 
Posts: n/a
Default Re: $_POST limit?

bigoxygen@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!??!
Reply With Quote
  #3 (permalink)  
Old 04-15-2005
jerry gitomer
 
Posts: n/a
Default Re: $_POST limit?

Good Man wrote:
> bigoxygen@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
Reply With Quote
  #4 (permalink)  
Old 04-28-2005
rovisoft
 
Posts: n/a
Default re:$_POST limit?

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
Reply With Quote
  #5 (permalink)  
Old 04-28-2005
Andy Hassall
 
Posts: n/a
Default Re: $_POST limit?

On 14 Apr 2005 17:26:33 -0700, bigoxygen@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 / <andy@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Reply With Quote
  #6 (permalink)  
Old 04-28-2005
Philip Olson
 
Posts: n/a
Default Re: $_POST limit?

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 :)

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:20 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0