Jump to content

[SOLVED] frame help


MDanz

Recommended Posts

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 in menu.html and submit, 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.

Link to comment
https://forums.phpfreaks.com/topic/177725-solved-frame-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.