Q:

Hide (or disable) submit button when user clicks on it

I am working on development of an application using CakePHP framework.
We all have clients that click several times on the submit button.
How can I hide or (even better) disable the submit button when a user clicks on it?
On the internet I found several Javascripts that can do it, but I need help to integrate it into my CakePHP script.

A:

Put this on the submit button:
onclick="this.disabled=true;return true;" 

example
    <input type=submit value='submit'
onClick='this.disabled=true;doSection(loading);return true;'> 

using jquery
 $("form").submit(function() {
            $(":submit", this).attr("disabled", "disabled");
          });

