title: OnClick - prevent user from multiple submits
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/926816/how-to-prevent-multiple-form-submit-from-client-side">how to prevent multiple form submit from client side?</a>  </p>
  </blockquote>
  
  
  
  <p>We have a project management tool which we are using, but when a user submits a log under task they click the submit button several times. this adds in several entries of the same information.</p>
  
  <p>I have tracked down the code within the PHP file and I have seen online many solutions for on submit click. I have been playing around for the last four or five hours but unfortunately I have been unable to get anything to work. I was hoping someone could provide a little assistance:</p>
  
  <p>This is the code that I have in the PHP file:</p>
  
  <pre><code>&lt;input type="submit"  class="button" value="&lt;?php echo $AppUI-&gt;_('update task'); ?&gt;" onclick="updateTask();" /&gt;
  </code></pre>
  
  <p>effectively I just want the user to click the button, and after a single click. It is either greyed out or the user is unable to click any more.</p>
  
  <p>Thank you</p>