Relational PHP Combo

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
ninjababy
Forum Newbie
Posts: 1
Joined: Thu Oct 11, 2007 5:12 am

Relational PHP Combo

Post by ninjababy »

Hi ,

I am getting some difficulity to write a PHP code for Relatioal PHP Combo box ,
I have 3 combo box in one page for example: myplace.php
1. Country
2. City
3. Place
my question is , if i click the country combobox i only want to show the city which related with country and when i select the city , i would like to see list of places which is only related with selected city at the above combobox .
:roll: I am beginner for PHP and a bit difficult for me to write this page , so please if someone know how to write , please show me with the step by step example.

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

Post by feyd »

You're looking for what is called a Chained Select. Take a look in the Tutorials forum.
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

A newer version is in Coding Critique ... Dynamic/Chained Selects using Ajax Prototype/JQuery
Post Reply