rajah1977 Posted February 3, 2009 Share Posted February 3, 2009 Hey guys ... just visit my webpage www.meinpet.com and go into anmelden - privat - Land(country) .. then Region ... i want it in a way that when i select country then the region should be shown from the above selected country. hope you undesrtood . can anyone help me please thank you Rajah Quote Link to comment https://forums.phpfreaks.com/topic/143637-i-need-help/ Share on other sites More sharing options...
gevans Posted February 3, 2009 Share Posted February 3, 2009 Unless you want a page reloa I'd recomend ajax, or just standard old javascript Quote Link to comment https://forums.phpfreaks.com/topic/143637-i-need-help/#findComment-753659 Share on other sites More sharing options...
rajah1977 Posted February 3, 2009 Author Share Posted February 3, 2009 Hey Gevans.. i didnt get you.. could you please explain me .. I am just a beginner by php. Quote Link to comment https://forums.phpfreaks.com/topic/143637-i-need-help/#findComment-753755 Share on other sites More sharing options...
gevans Posted February 3, 2009 Share Posted February 3, 2009 Well, if you would like to use php to do this you will need to write some script to submit the form when the country is chosen. Then script will pick this up and reload the page with the regions for that country in place. Otherwise you could use javascript to do this dynamically without a page refresh Quote Link to comment https://forums.phpfreaks.com/topic/143637-i-need-help/#findComment-753757 Share on other sites More sharing options...
RichardRotterdam Posted February 3, 2009 Share Posted February 3, 2009 You will have to build this in seperate parts this is what you need: 1) 1 table with countries 1 table with regions 2) php script does the following: a select query which fetches the regions something like $sql="select from regions where country_id={$countryId}" 3) ajax(javascript) script which refreshes the pulldown of regions Quote Link to comment https://forums.phpfreaks.com/topic/143637-i-need-help/#findComment-753781 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.