Jump to content

I need help


rajah1977

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/143637-i-need-help/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/143637-i-need-help/#findComment-753757
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/143637-i-need-help/#findComment-753781
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.