Hello All,
I'm using an html <button> element in a php app. My understanding is that the NAME and VALUE attributes determine the name/value pair sent to the server when a submit button is pushed. However, php POST is receiving the button label text instead of the value attribute (code and results below). What am I missing?
echo("<form method=post action=" . $PHP_SELF . ">");
echo("<button name=cmd type=submit value='xyz'>Test</button>");
echo("</form>");
print_r($_POST);
Results:
Array ( [cmd] => Test )