The easiest way to do this would be to use $_SESSION data. Saves having to have multiple cookies as you can set it into the one session. I'm not sure how you have set it up, so i cant give you direct advice; However say you have a dropdown menu asking them to select what page they want to view (UK, USA or Jap) and once they have submitted that form, you direct them to a certain page depending upon what they selected; just do:
Code:
if(isset($_POST['submit'])) {
$_SESSION['region'] = $_POST['region'];
}
That's just the basic grab the form data and store it into a session. Once it is stored, (Dont forget to session_start() first.) you have that session data set and then you can use a function to determine were to direct them. Eg:
Code:
function Region($Region) {
if($Region == "UK") {
header('location: uk.php');
}
elseif($Region == "USA") {
header('location: usa.php');
}
elseif($Region == "Jap") {
header('location: jap.php');
}
else {
echo "Submit the form!";
}
}
Then at the start of the page, execute the function. (I'm assuming you understand the code i used, thus i didn't go into too much explanation.). Hope it helped.