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
ananth_ak
Forum Newbie
Posts: 23 Joined: Wed Feb 09, 2005 12:42 pm
Location: uk, london
Contact:
Post
by ananth_ak » Sat Mar 19, 2005 7:17 am
hi,
i have two combo boxes 'area' and 'action'.
when a specific area is selected - items related to the area are enabled in the action combo box.
does anyone have any solutions for this in php/ javascripting?
n00b Saibot
DevNet Resident
Posts: 1452 Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:
Post
by n00b Saibot » Sat Mar 19, 2005 7:53 am
can be done either way. attach an onchange event tothe combo box and then
PHP - submit the form and then write out the valid options thru PHP.
JS - dynamically add/remove options as may be correct for particular choice.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sat Mar 19, 2005 9:25 am
read CoderGoblin's tutorial... in the tutorial section.