Prevent page with "ok" button appearing after clicking (PHP-type) button in form

Is there a way to prevent the “OK” page from appearing after a button (of PHP-type) is clicked on a form? I prefer system just moves smoothly to the next task.

Put sc_exit(sel) at the end of your button php code

@jlboutin60 : very true, thanks