Good morning guys!

Well I am new to PHP (as most ones here). I have ugly system developed but should stick to it.

I have index.php file on www.somename.com with two (there will be more) text links:

<a href="http://www.somethinggerman.com/german.php">German</a>
<a href="http://www.somethingrussian.com/russian.php">Russian</a>

and a PHP code on top of <HTML> tag:

<?php
if ( $_COOKIE['langSet'] == ger)
header("Location: http://www.somethinggerman.com/german.php");
elseif ( $_COOKIE['langSet'] == rus)
header("Location: http://www.somethingrussian.com/russian.php");
?>

which simply checks for contents of cookie and sends user to site on his language.

And I have two more files: german.php and russian.php with a PHP code on top of <HTML> tag:

<?php
$lang = 'ger';
setcookie("langSet", $lang, time()+60);
?>

for german.php
and

<?php
$lang = 'rus';
setcookie("langSet", $lang, time()+60);
?>

for russian.php

In each of those files there is a text link:
<a href="http://www.somename.com/index.php">Reselect language</a>

Main point in all this is that once user has selected his language, next time he comes to this site he is sent to site in his language. I am sorry for being so long. Here is my problem, guys...

If user has selected wrong language and want's to change it, there is no way to do so, since as he comes back to http://www.somename.com/index.php he is sent immediately to the site in language he selected before.

How should I rewrite this <a href="http://www.somename.com/index.php">Reselect language</a> link and what should I add to PHP code in index.php page, so it does not redirect user if he wants to change the language?

I am really desperate about this sitting wor a week now trying to find a solution... Pleas could you help me?