|
Posted by Manuel Lemos on 10/02/06 06:37
Hello,
on 09/30/2006 11:05 PM cpptutor2000@yahoo.com said the following:
> Could some PHP guru please help me? I am creating a dynamic dropdown
> list using a code snippet(Section A) as below:
If I got you right, you want to display linked select inputs with
options taken from database queries results, so when on you change one
select it display another with options dependent on the selected value
of the first, right?
In that case, you may want to take a look at this forms generation class
that comes with a plug-in to do that.
Actually, it does it better as it can use AJAX to update the dependent
select input options without reloading. It supports MySQL and many other
databases.
Here is an example page of what it does. This is not the AJAX/Database
driven version. For that see other example scripts that comes with the
class:
http://www.phpclasses.org/browse/file/9879.html
The class is here:
http://www.phpclasses.org/formsgeneration
--
Regards,
Manuel Lemos
Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
[Back to original message]
|