[PHP] Nested select options from database.

2003-04-02 Thread Krista
Hi everyone,

Is it possible, using just PHP, to pull a select menu from a DB, then when
the person makes a selection have it populate a second drop down select
menu, and again for a third one?  Would javascript need to be involved here
to keep it all on the same page?

I'm in pretty desperate need of some code that can do this to select
categories for products to go into, and I'm not sure how to make it work.
There are way too many categories to have top level, second and third in the
same drop down anymore - we only want people to be able to add the products
to the third level.

Krista




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



Re: [PHP] Nested select options from database.

2003-04-02 Thread olinux
--- Krista [EMAIL PROTECTED] wrote:
 Hi everyone,
 
 Is it possible, using just PHP, to pull a select
 menu from a DB, then when
 the person makes a selection have it populate a
 second drop down select
 menu, and again for a third one?  Would javascript
 need to be involved here
 to keep it all on the same page?
 

No but you could retrieve all of this information at
once and use it in your javascript

 I'm in pretty desperate need of some code that can
 do this to select
 categories for products to go into, and I'm not sure
 how to make it work.
 There are way too many categories to have top level,
 second and third in the
 same drop down anymore - we only want people to be
 able to add the products
 to the third level.
 

here are a several options

http://www.jsexamples.com/example/?ex=290mode=2
http://www.jsexamples.com/example/?ex=728mode=2
http://www.jsexamples.com/example/?ex=536mode=2
http://www.jsexamples.com/example/?ex=458mode=2

olinux

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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