The idea is really simple, your script will need to read in the value passed and using the "header()" function simply pass the user to a URL. It might work something like this...
php
<?php
if (isset($_GET["game"])) {
// Store the name of the game into a variable (passed to the script via a url)
// Eg. www.mydomain.com/games.php?game=metalslug
$gamename = strtoupper($_GET["game"]);
// Now based on the game, we execute one of many choices.
// Each choice sending the user to the related game page.
switch ($gamename) {
case "METALSLUG":
header("Location: metalslug.php");
break;
case "PACMAN":
header("Location: pacman.php");
break;
case "SPACEINVADERS":
header("Location: spaceinvaders.php");
break;
default:
echo "Sorry, there is no game page for the game specified.";
}
}
?>
This is one way to do it and might be the easiest for you to implement and extend when you get more games online. Just don't start making the list hundreds of entries long. When that starts happening, you can come see us for more advanced techniques.
Hope that helps!

"At DIC we be the game page rerouting code ninjas!"
This post has been edited by Martyr2: 29 Feb, 2008 - 09:56 AM