      <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
      <script src="https://www.google.com/recaptcha/api.js" async defer></script>
      
      <form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method="post">
      
      <div id="recaptcha" class="g-recaptcha" data-sitekey="6Le6fbwUAAAAAKBhgdXPBZLitu28gluyVjKUqWMz" data-callback="enableBtn"></div>
      
      <button type="submit" id="emad" class="btn btn-default btn-primary" >Publish</button>
      
      
      </form>
      
      <script type="text/javascript">
          
          
          document.getElementById("emad").disabled = true;
          
          function enableBtn(){
    document.getElementById("emad").disabled = false;
   }
          
          
      </script>