Get submit button value in PHP

后端 未结 5 1564
天命终不由人
天命终不由人 2021-01-17 06:10

I would like to test my button can get the current value from the date\'s textbox? I got the value of submit button but I couldn\'t find any code get name of the button. So

5条回答
  •  [愿得一人]
    2021-01-17 06:29

    You can try this one

    if(isset($_POST['oprf'])) {
     echo $_POST['oprf'];
    }
    

    Hope this helps

提交回复
热议问题