Re: dynamic pulldowns from DB

From: Date: Fri, 20 Apr 2001 09:02:07 +0000
Subject: Re: dynamic pulldowns from DB
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-6909@lists.php.net to get a copy of this message
Depends how neat you want it to be! If you don't mind asking the user to hit a button for each selection, then treat each list as a form with its own submit button. Set the submit action to update the variable that you use for the select to create the next list down. Note that if you do this you will have to put the sql queries in line in the code! The alternative that I use when I want a neater solution is to pass the php variable to a javascript function which sets the next level variable and then returns to the script, but this can be confusing if you're newish to php and/or javascript. Tom Robert Trembath wrote: > A little help from anyone please. > > I know this was discussed before but I can't find it now that I need it. I > want to dynamically populate a pulldown list from a mysql query based on > what is selected from another pulldown list populated by a query from mysql. > If the first choice is changed a different list of option is populated in > the second. Please help! > > Robert > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#6909) next »