Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jan 2005
    Thanked 0 Times in 0 Posts

    Storing the value from disabled radio button

    I'm writing a short quiz where the user has a multiple choice question on each page. The idea is that they click one of three radio buttons and then the buttons are disabled and it shows a div with some feedback text on their correct or incorrect answer.

    The problem is that I would like to store which answer they chose and pass it to the next page in a php session, but disabling the radio buttons after a selection obvious doesn't allow the value to be submitted then.

    Is there some way I can keep the user from selecting another radio button after their first selection and still pass the value to the next page?

  2. #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Thanked 2,250 Times in 2,237 Posts
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts