Posted 09 August 2006 - 03:25 AM
The problem being is that i've got three drop down boxes: the first a country, the second a state/region, and the third is a city. I need it to so when you select a country the states from that country appear in the second drop down box and when you select a state the cities of that state appear in the third drop down box. All this has to be done without reloading the page if possible.
I've so far got it to do the selection part and all but it has to reload the page every time it is changed and deletes all user information that was already entered in the form.
If you need the source code as well please email me for it.
If you have any ideas about this problem please post here ,email, or pm me at: firstname.lastname@example.org
Posted 09 August 2006 - 07:25 AM
Posted 09 August 2006 - 08:47 AM
at ajaxfreaks.com you can find an easy tutorial to how it can be done. All you have to do is to add a onChange event to your dropdown boxes. And then you script will take the value of your dropdown box send it to a php page (like findState.ajax.php) via get mode (your url will be as findState.ajax.php?country=USA) and in your PHP page you will get data from SQL and then echo the options. Get the text by XMLHTTPRequest's responseText property and add it to your page via an innerHTML method of a span area, or something like that.
look for ajaxfreaks.com for a more clear tutorial btw
Posted 09 August 2006 - 10:46 AM
Im needing a form that has three drop down boxes not two and don't quiet understand how this works. please email me if you have any suggestions. Ive also got the source code for all + sql database structure. Just i can't post it on the net anywhere
Posted 09 August 2006 - 11:55 AM
Posted 11 August 2006 - 02:03 AM
If you have any ideas please post here or email me
Posted 11 August 2006 - 07:55 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users