Page 1 of 1

Relational PHP Combo

Posted: Thu Oct 11, 2007 5:31 am
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

Posted: Thu Oct 11, 2007 8:46 am
by feyd
You're looking for what is called a Chained Select. Take a look in the Tutorials forum.

Posted: Thu Oct 11, 2007 6:45 pm
by CoderGoblin
A newer version is in Coding Critique ... Dynamic/Chained Selects using Ajax Prototype/JQuery