MDanz 0 Junior Poster

on the bottom frame is menu.html

<body><form action='link.php' method='post' name='changer'>
<label>URL
<input type="text" name="url" />
</label>
<label>
<input type="submit" name="Submit" value="Submit" />
</label>
</form>
</body>

on the top frame is link.php

<?php
  if (isset($_POST['url'])) {
    header("Location: " . $_POST['url']);
  }
?>

the problem is when i enter a url, i want link.php to go to that webpage. whats the best way to do this?... the above isn't working the way i want it to.