Re: Updating dropdown list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux