Re: Retrieving Stored Values for Dropdown Menu

From: Date: Thu, 29 Jul 2004 01:46:23 +0000
Subject: Re: Retrieving Stored Values for Dropdown Menu
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-192140@lists.php.net to get a copy of this message
On Wed, 28 Jul 2004 21:19, Harlequin wrote: > OK David. > > But here's the conundrum: > > a User has already selected a value which is stored in the database. Can I > Display a range of <option> tags but make the one the user selected > previously as the default...? > > ??? > Yes you can. I'm not going to give you the code, but a pointer to solving problems yourself. Just break the problem down to its component parts, and resolve each one as you go. For instance, you need to define an option as selected - first figure out how to do that (it's a HTML problem). Then you only want to define an option as selected if certain conditions are met, so test for the conditions and act accordingly. -- David Robley Q: Why do blondes hate M&Ms? A: They're too hard to peel.

« previous php.general (#192140) next »