deltoideus wrote in php

implementation difficulties

Hi, i am new to this community and php, so please, excuse me for stupid and strange questions :)

First, let me describe the situation:

Website has form and 2 select-elements in it. One select-element contains countries and annother one contains cities. Cities and countries are stored in a database. Country list is almost static (means, new countries are added very rare). But cities are added more often. When user selects some country from the list, the city select-element automatically displays only these cities that could be found in selected country. Javascript does that ok, but the problem is that this javascript file should be modified each time new city is added.

Now, the question itself:

If i'm going to modify javascript file with php script when city is added to database, then i suppose we will have some problems with users who are trying to accept this javascript during it is being modified? I'm wrong? Or the user will see that file as it was before modification started? Any other variants?

Or am i on the wrong way from the very beginning? Other realization solutions are welcomed.

HELP! :)