title: Getting the condition of if isset submit button using PHP
body: <p>I have a html code and php code that will execute a program when the I hit the submit button. I'm trying execute my code while the Submit button is disabled. The button disabled but it did not execute my php code. Is there a condition for if(isset) when the button is disabled? Can you give me tips on this? </p>
  
  <p>Here's my <strong>html code:</strong></p>
  
  <pre><code>  &lt;form method ="POST"&gt;
  
    &lt;input type="submit" name="submit" value="GENERATE report" onclick="this.disabled=true;"&gt; &lt;br /&gt; 
  </code></pre>
  
  <p>Here's my <strong>php code</strong></p>
  
  <pre><code>&lt;?php
  
  
       if (isset($_POST['submit'])) {
  
         echo '&lt;script language="javascript"&gt;';
                      echo 'alert("disabled")';
                      echo '&lt;/script&gt;';
  
       }
  
  ?&gt;
  </code></pre>