Are you storing info in a database? Or are you only going to have three different 'index' pages?
If it's only three, the easiest thing would be to set a cookie with a value such as 'uk' or whatever else works for you.
Then, on the main page of your site run a cookie check when the page loads, if the cookie exists and it's values is 'uk' then redirect the viewer to the uk section of your site using a header(Location:....) command.
So...just for fun...it would be something like this:
user sees flags, clicks on 'uk' flag.
The 'uk' page loads and sets a cookie with a values of 'uk'
Now, the person comes back later, the front page sees the cookie with a value of 'uk' and automatically redirects to the 'proper' uk page.
The most basic way to set a cookie would be:
setcookie("cookiename", "value");
for example: setcookie("flag_value", "uk");
To look for the cookie do something like:
if($HTTP_COOKIE_VARS["flag_value")
{
// redirect here to he proper page
}
You should also add some checking to make sure it's a value that you allow, etc, etc..
The 'setcookie' call in this little example here will be gone the minute the viewer closes his/her browser, so you should decide on a time limit for the cookie and set that as well.
Take a look at the manual section for cookies.
-- Jason