netfrugal wrote:Will foreach() simply show all _POST variables in an array?
Erm... I think you have your terms mixed up.
The variable $POST is an array. When you submit elements in a form (let's exclude arrays, such as checkboxes, multiple SELECT elements, etc. etc.), the $POST array is populated with the submitted data. The name of the submitted element is used as the key and the submitted value is used as the value (of course).
So, if you wanted to output all elements in the $_POST array, you could do:
foreach($_POST as $key => $value)
echo $key . ' has a value of: ' . $value . "<br>\n";