I think I understand what you're getting at:
while (list($key,$val) = each($HTTP_POST_VARS)) {
echo "Key: $key => Value: $val<br>\n";
}
This should print all the submitted values to the screen. Modify it to use the variables as you intend. If your form method is GET instead of POST, use $HTTP_GET_VARS. HTH.
geoff