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" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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:[EMAIL PROTECTED]] > Sent: Wednesday, September 11, 2002 2:02 AM > To: [EMAIL PROTECTED] > 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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php