MDanz Posted October 15, 2009 Share Posted October 15, 2009 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 More sharing options...
dymon Posted October 15, 2009 Share Posted October 15, 2009 Why not to use javascript to make a redirect, or an ajax request if you need some additional checks (if the url exists in the database for ex.). Tell me if this way is the one you would accept, to discuss it further. Link to comment https://forums.phpfreaks.com/topic/177725-solved-frame-help/#findComment-937280 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.