Possible Duplicate:
how to prevent multiple form submit from client side?
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.
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:
This is the code that I have in the PHP file:
<input type="submit" class="button" value="<?php echo $AppUI->_('update task'); ?>" onclick="updateTask();" />
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.
Thank you