Populating a Hash from $_POST
Posted: Thu Aug 14, 2003 2:09 pm
I'm a php newbie, how do I fill a hash with the field names and values of the $_POST global?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
foreach($_POST as $name => $value){
echo "\$_POST['$name'] equals $value<br />\r\n";
// $name, $value are available
}