How can I output the element name (instead of the value) of a $_POST array?
I am trying to foreach-loop through the array to get the HTML form's text box names but I have no idea how to do this, however much I research.
Thanks in advance.
The snippet below is what I have so far but I know it only outputs the value of the element, rather than the name, which is what I need as the parameter for my function "makeButtons()". Also, I would want to use the element name of "submit" instead of the value "Create Buttons" below:
foreach ($_POST as $user_attribute){
if ($user_attribute!="Create Buttons"){
makeButtons($user_attribute);
}
}