On submit the data is send to the host and then echoed by a small PHP script (RESTful).
The country names are stored in a MySQL database on the host and adding names is easy.
There is a simple validation. I believe that there is no country name shorter than 4 characters.