conditional dropdown

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
grudz
Forum Commoner
Posts: 68
Joined: Thu Dec 04, 2003 12:52 pm

conditional dropdown

Post by grudz »

I did a search to see if this question was already asked, but found nothing, i would like a dropdown menu to have 5 values, then the other dropdown menus' information depend on what the user choses in the first.
any ideas?
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post by DuFF »

This would be more suitable for javascript. PHP is server-side, while javascript works clientside.
MrCol
Forum Newbie
Posts: 1
Joined: Sat Feb 07, 2004 9:34 pm

Post by MrCol »

just done something like this, yes you will need js. Getting all the values etc from a database and slapping it all in correctly and matching it all up correctly was a pain to say the least.

Anyways, here is where i got a starter as far as the javascript was concerned ... http://www.oneworldisp.net/tools/form/form.html
Post Reply