e provando così

Codice PHP:
foreach($_POST as $key=>$dato) echo $key
anzichè

Codice PHP:
while (list($chiave$valore) = each($_POST)) 
come te la da la chiave?