Page 1 of 1

How to disable HTML buttons

Posted: Wed Oct 04, 2006 11:54 am
by impulse()
I want to create a form that searches a DB for an entry and if that entry is equal to 0 it leave the button clickable but otherwise it greys the button out.
I know the PHP side of this but how do you create a HTML button that's unclickable and greyed out?

Regards,

Posted: Wed Oct 04, 2006 12:05 pm
by Luke
I believe it's like this:

Code: Select all

<input type="submit" value="Submitting..." disabled="disabled">

Posted: Wed Oct 04, 2006 12:12 pm
by impulse()
Kudos for you.