I think this is what you mean:
<?
$var = $_GET['var'];
if(isset($var))
{
header('Location: $var');
exit;
}
<form method=POST action='$_SERVER[PHP_SELF]'>
// form stuff
</form>
?>
You could use an array to store your link locations in:
<?
$links['link1'] = 'home.html';
$links['link2'] = 'http://yoursite.com';
// Etc...
?>
And your links would loke similar to:
<a href="$PHP_SELF&var=<? echo $links[link1] ?>">Home</a>