Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.