PHP, preferably. It can be done with JS, but it would be a bad idea, since non-JS users wouldn't be able to use it. If you only want one item selected, you actually want a radio button.
Code:
<?php
error_reporting(E_ALL); // because headers always cause trouble.
if(isset($_POST['url']))
header('Location: ' . $_POST['url']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Redirect to Page</title>
</head>
<body>
<form action="<?php print $_SERVER['PHP_SELF']; ?>" method="post">
<div>
<label>
<input type="radio" name="url" value="http://www.google.com/">
Google
</label>
<label>
<input type="radio" name="url" value="http://www.yahoo.com/">
Yahoo!
</label>
<label>
<input type="radio" name="url" value="http://www.clusty.com/">
Clusty
</label>
<label>
<input type="radio" name="url" value="http://www.twey.co.uk/">
Twey
</label>
</div>
</form>
</body>
</html>
Bookmarks