How to catch button in the admin area of wp?

Write a plugin, there are two input and button, they are displayed in the meta box when editing records. How to catch button?
This option does not work
if ($_POST['atb_go'] == true){
//actions
}
<form method="post">
<input type="submit" name="atb_go" value="Update">
</form>
July 9th 19 at 10:11
1 answer
July 9th 19 at 10:13
if ( isset($_POST['atb_go']) ){
//actions
 }
This is what I wrote, still refreshes the whole page - martin commented on July 9th 19 at 10:16
: and what do you have? - cleve_Murray commented on July 9th 19 at 10:19
: I need to query the dB based on two inputof and display data - martin commented on July 9th 19 at 10:22
: if without updating, using jquery and ajax look. - cleve_Murray commented on July 9th 19 at 10:25

Find more questions by tags WordPress