if (isset($_POST('submit_login'))) { // login related check } if (isset($_POST('submit_registration'))) { // registration related check }