Need help in the design, in general, I made a registration on the site where there is a country / region / city (region and city only for Russia). Now the choice works, but, not fully, but I mean, if you select Russia, it shows a block of regions, then cities (everything seems to be fine, but), if the user has already specified all the data, you cannot bring them out in the profile , you need to be like picture
I tried to do everything in every way, pulled it out of the functions, combined the functions, and still didn’t deduce as needed.
Here are files with the base of countries / regions and cities of Russia, as well as the ajax_city.php
file in which the information is processed, and main.php
where I main.php
everything else, jquery and css. https://www.dropbox.com/sh/i5ku2ld65c774bo/JgAqFXTnbK
In the main.php
file main.php
if you replace $user_country = "0"; на $user_country = "3159";
$user_country = "0"; на $user_country = "3159";
, the result will be exactly the one for which I am looking for a solution.
Thanks for the help.