Re: Updating dropdown list

From: Date: Mon, 11 Jun 2007 19:25:33 +0000
Subject: Re: Updating dropdown list
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-256649@lists.php.net to get a copy of this message
On Jun 11, 2007, at 1:52 PM, Jay Blanchard wrote:
[snip]
    Without refreshing the page would require JavaScript, but if it
doesn't matter if the page is refreshed, you could use PHP. [/snip] Or a combination, using AJAX.
Or you could use CSS and JS. Use PHP to populate all your lists (may be time-consuming if you have lots of really large lists) from your MySQL database. Only show the first drop-down upon load. Then, based off of what's selected in that list, show/hide your other lists as well. This won't be as "pretty" b/c in the HTML source you'll have lots of nasty lists, but it's an option. Good luck! ~Philip

« previous php.general (#256649) next »