Ver originalif(isset($_POST['BtnInsertar'])){ // se han recibido datos }else{ // no se han recibido datos }