cole454 Posted December 16, 2011 Share Posted December 16, 2011 I have a "system" setup for posting some feedback questions on an internal website. I have it setup to read a field "enabled" which has a 1 or 0. 0=disabled, 1=enabled The script works if I manually change that field, ie it reads the correct question. But need a way to have the questions listed then the one that needs to be shown on the site selected to be enabled on an admin page. Something like a list with checkboxes or radio buttons? How can I have one enabled and make sure the rest are not to prevent multiple questions being enabled? Quote Link to comment https://forums.phpfreaks.com/topic/253316-enable-only-one-record/ Share on other sites More sharing options...
awjudd Posted December 17, 2011 Share Posted December 17, 2011 Make each of the questions have a radio button which are a part of the same group and then look in that radio button group value for which one is enabled, while marking all of the others as disabled. ~awjudd Quote Link to comment https://forums.phpfreaks.com/topic/253316-enable-only-one-record/#findComment-1298770 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.