Click to See Complete Forum and Search --> : $_POST and php


rAph
04-20-2003, 07:12 PM
Hey, how can I loop through the _POST super-global array and get the field name? I know how to get the field value, but i need the field name. For example:

<input type='hidden' name='FVid_type' value='int' />

I need to my PHP program to output "FVid_type", not "int"

Jedi Legend
04-20-2003, 09:57 PM
foreach ($_POST as $key=>$value) {
echo $key;
}


$key is the current key and $value is the current value of the array $_POST.

rAph
04-21-2003, 03:28 AM
Thanks a bunch, you've really helped