Best way to reinstate radio-button states from database?

From: Date: Sun, 28 Jun 2009 23:12:25 +0000
Subject: Best way to reinstate radio-button states from database?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-294699@lists.php.net to get a copy of this message
I have a webpage which allows people to log in and make selections with radio buttons and hit SUBMIT and saves the data from those radio buttons to a mySQL database. However, I'm finding that I also need the ability to allow a user to log back in at a later date (or even on a different computer), and pull up that survey again, with each of the 50-something radio-buttons back in the positions in which they were last saved. Surely there's a best-case-method for doing this type of thing (saving large numbers of radio-button-group settings to mySQL and pulling them back again later). Any advice is greatly appreciated. Perhaps there's a jQuery-way to retrieve all the radio-button group settings as an array and save it and pull it back again? Or perhaps a PHP-specific method - - - I'm fine with either.

« previous php.general (#294699) next »