rch10007
04-17-2006, 07:35 AM
I was just fooling around and I used a form like the following to test how many variables I could pass on my localhost using GET and POST. GET broke at about 353 array values and I am still going strong with 10,400 for POST so far. How many values can you send with POST (I don't want to break my computer to find out!)?
<?php
if(!$some_var)
{
?>
<form action="index1.php" method="POST">
<input type="submit" name="submit" value="Go =>" />
<input type="text" name="some_var[]" value="Value 1" />
<input type="text" name="some_var[]" value="Value 2" />
<input type="text" name="some_var[]" value="Value 3" />
<input type="text" name="some_var[]" value="Value 4" />
<input type="text" name="some_var[]" value="Value 5" />
</form>
<?php
}
else
{
echo count($some_var);
foreach($some_var as $key)
{
echo $key."<br />\n";
}
}
?>
<?php
if(!$some_var)
{
?>
<form action="index1.php" method="POST">
<input type="submit" name="submit" value="Go =>" />
<input type="text" name="some_var[]" value="Value 1" />
<input type="text" name="some_var[]" value="Value 2" />
<input type="text" name="some_var[]" value="Value 3" />
<input type="text" name="some_var[]" value="Value 4" />
<input type="text" name="some_var[]" value="Value 5" />
</form>
<?php
}
else
{
echo count($some_var);
foreach($some_var as $key)
{
echo $key."<br />\n";
}
}
?>