If your just trying to pull out the key/value pairs from the post data, then try the following:
while( list( $key, $value ) = each( $HTTP_POST_VARS) )
{
echo "$key / $value";
}
I'm not sure why your using array_count_values() in your example above (assuming that's just an error).
If you're wanting to specifically return an array like what your doing above, then consider the following:
if the post data contains action=submit, then this example would work:
while ( $element = each( $HTTP_POST_VARS) )
{
echo "$element[0] / $element[1]";
}
Hope that helps.
Scott
http://www.primainternet.com