No need to reassign the $POST array to a new variable name... Be careful using this method though, because it exposes you to malicious code injection. Read up in the manual about Register Globals, because this is essentially circumventing the register globals off setting.
foreach ($_POST as $key => $value) {
echo "Key: $key; Value: $value<br />\n";
}
An alternative would be to is count all of your variables on the first page, and pass that along with the script, so you can use that count to create your loop... Just a thought.