Drop Down Problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
leewad
Forum Commoner
Posts: 91
Joined: Tue May 11, 2004 8:32 am

Drop Down Problem

Post by leewad »

Hi

I am trying to create a links directory on a site where people can place there link in a directory, I need to have 2 drop down boxes which pulls from the database.

1st box pulls main categories from database category lets say "property service" ( That is no problem - i can do this )

2nd box then pulls sub directory list from database which is under "property service" ( this needs to be done in realtime with no refresh )

Any body have any ideas ?

Cheers
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

leewad
Forum Commoner
Posts: 91
Joined: Tue May 11, 2004 8:32 am

Post by leewad »

How does that tell you anything about pulling from a database ? It only explains how to add java to a page not content pulled from a database
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you echo out all the options into javascript arrays, so you can alter the internals of the pull downs to display the new information.
leewad
Forum Commoner
Posts: 91
Joined: Tue May 11, 2004 8:32 am

Post by leewad »

Thanks - thats a bit better that just entering a link
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

that was talked about in the linked page. Hence why I didn't feel the need to explain it. Oh well :roll:
Post Reply