Re: Re: Dependent Dropdown Boxes

From: Date: Wed, 18 Sep 2002 11:19:23 +0000
Subject: Re: Re: Dependent Dropdown Boxes
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-116711@lists.php.net to get a copy of this message
it is all .js right, but there are the js_products and the js_categories javascript variables which are server-side generated. They are dumped from the database and encode '|' seperated values. Btw, what you are achieving is heavily JavaScript...otherwise you can it almost all in PHP w/o javascript...which is reload the page everytime he chooses a new category. something like: panel Categories | panel subCats generate categories as: select * from categories generate subCats as: select * from subcats where cat={selected Cat} add an event to the categories listbox as: onchange="this.form.submit();" this will cause the form to reload and refill your subCats accordingly. Elias "Roger Lewis" <re.lewis@attbi.com> wrote in message news:NDBBJIHLJGGJEBMGGKCDMEJPCNAA.re.lewis@attbi.com... > Thanks Elias, > > I took a look at the code and there are indeed many things to learn; > however, it's all in js. > I'm trying to have php write the js, but I don't know enough about arrays > and manipulating their elements. > > Roger > > -----Original Message----- > From: lallous [mailto:phplist@lgwm.org] > Sent: Wednesday, September 11, 2002 2:02 AM > To: php-general@lists.php.net > Subject: [PHP] Re: Dependent Dropdown Boxes > > Hi, > > Try to learn many things from the test code i created below: > > http://lgwm.org/ozone/dynatable.htm > > Good luck, > > Elias >

« previous php.general (#116711) next »