如何在php中获取提交按钮的名称,我得到了提交按钮的值但是找不到任何代码获取按钮的名称,下面是我写的代码.
<form name="form1" method="post">
<input type="submit" value="hello" name="submitbutton">
</form>
<?php
echo "Value of submit button: " . $_POST['submitbutton'];
echo "Name of submit button: " . // What should I do here? //;
?>
Run Code Online (Sandbox Code Playgroud)