I'm not sure I got this right: you want to iterate through array and do something with all non-null values, right? If so, just add a condition that the value is not null:
foreach ($HTTP_POST_VARS as $key => $value)
if ($value) {
... do whatever ...
}
I think this will also skip $key=>"0" items. To avoid that, use
if ($value != "")...
(not sure, but I think that all $HTTP_POST_VARS values are strings, so this should work)
Of course, if you have to go through this array many times, create a temporary array:
$post_vars = array();
foreach ($HTTP_POST_VARS as $key => $value)
if ($value != "") $post_vars[$key] = $value;
Now, $post_vars has all $key=>$value items with non-null $value.