Forum Moderators: open
$_POST["name"]
This is an associative array. A direct array reference
such as $_POST[0] always returns an empty string.
Is there any way to get a raw array of POST fields that
can be scanned without knowing their names beforehand,
just as GET fields can be scanned?
David
However, the following code is also from the PHP Manual and seems to answer the question nicely.
echo "Values submitted via POST method:<br>";
reset ($HTTP_POST_VARS);
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
echo "$key => $val<br>";
}