Relating two combo boxes from a db....
| From: | Chris Lott | Date: | Tue, 21 Nov 2000 15:38:41 +0000 |
| Subject: | Relating two combo boxes from a db.... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-26458@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Does anyone know how to dynamically populate a select/combo box based on the
selection made in a previous one? I want to have two select boxes on the
page... in the first the user selects the general category, which
dynamically
populates the second with the relevant subcategories. I know I can do it by
having the user select the category on one page and go to the next page
where
I perform the new query, but since the number of categories and
subcategories
is small, I would like to do it all on the same page, probably using some
Javascript arrays or something.
Problem is, I have no idea how this might be done :) Does anyone else?
c
- --
Chris Lott
-----BEGIN PGP SIGNATURE-----
Version: 6.5.8ckt http://irfaiad.virtualave.net/
Comment: PGP Signed for message authentication and verification
Comment: KeyID: 0xD68B61E851046CFD
iQA/AwUBOhqW/9aLYehRBGz9EQK0KwCgk+PxKaOBUa9uZ1aYVz0jISSTp0kAn0aQ
FxLawHGBIVTM9ip6DjV8RW1n
=lHvS
-----END PGP SIGNATURE-----