Forum Moderators: open

Message Too Old, No Replies

enable and disable buttons

         

FayeN

10:10 pm on Nov 3, 2003 (gmt 0)

10+ Year Member



I am designing an electronic voting system with PHP, mysql and apache. At this time it is very simple. On one page you can vote for president by selecting a candidate from a group of radio buttons. I have three buttons vote skip and continue. When the page comes up I would like the skip and continue button to be disabled until the person votes and then when the person hits vote I would like that button to become disabled and have the skip and continue button enabled.

Can someone help with the code part of this/

NickCoons

12:30 am on Nov 4, 2003 (gmt 0)

10+ Year Member



This sounds more like a JavaScript question. You can have the buttons disabled when then page loads, then use the onClick even of the radio buttons to determine whether or not they should be enabled.