header location
Er der nogen der kan se en fejl...?show_menu.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Vidresendings Menu</title>
<meta name="Generator" content="Stone's WebWriter 4">
<meta name="Author" content="Steen Hjelmstrand" />
</head>
<body>
<form method="post" action="do_redirect.php">
<table>
<tr>
<td>Jeg vil gerne til : </td>
<td>
<select name="location" size="1">
<option value="http://www.google.com/">Google.com</option>
<option value="http://www.zebzone.dk/">ZebZone.dk</option>
<option value="http://home22.inet.tele.dk/zeb/">Gl.Hjemmeside</option>
<option value="http://www.sol.dk/">Sol.dk</option>
<option value="http://www.dsb.dk/">Dsb.dk</option>
</select>
</td>
</tr>
<tr>
<td colspan="2">
<center><input type="submit" value="Gå til hjemmesiden!"><center>
</td>
</tr>
</form>
</body>
</html>
do_redirect.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>do_redirect</title>
<meta name="Generator" content="Stone's WebWriter 4">
</head>
<body>
<?php
$location = $_REQUEST["location"];
header("Location: $location");
exit;
?>
</body>
</html>
