|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Auto Drop Down Box - any php
I am trying to create 2 drop down boxes, for example Country and state so when country is selected it will show in the second drop down box the correct list of states (the list comes from mysql database because it is business categorys).
I am not sure how to make this work I hope some one can help. Thanks Last edited by drewj2k : July 12th, 2007 at 01:34 PM. |
|
#2
|
|||
|
|||
|
Since the list of states is in a mysql db I would suggest using AJAX.
(go to w3schools.com/ajax/default.asp for a tutorial). Once someone selects the first dropdown that calls a javascript function that sends away the AJAX request to a php script. The php script writes back and fills in the data for the second dropdown. The w3school's site has a good php AJAX example. |
|
#3
|
|||
|
|||
|
Quote:
Kool thanks I will look here and give it ago! |
|
#4
|
||||
|
||||
|
__________________
Conan, what is best in life? Conan: To crush your enemies, see them driven before you, and to hear the lamentation of the women! Last edited by trippleweb : August 9th, 2007 at 01:00 AM. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Auto Drop Down Box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|