piet bierbuik Posted October 10, 2006 Share Posted October 10, 2006 hi i work in frames.i have all.php, left.php and right.phpi want people to stay on all.phpso if they go to: www.mydomain.com/left.php they get redirected(or blocked) to all.phpis this possible ?(i hope it can be done with php other options are welcome) Quote Link to comment https://forums.phpfreaks.com/topic/23614-frames/ Share on other sites More sharing options...
hostfreak Posted October 10, 2006 Share Posted October 10, 2006 At the top of the page, directly under the "<?php" tag, put:[code]header("Location: all.php");[/code]Note that it must be at the top of the page. Put that on any page you want redirected back to all.php. Quote Link to comment https://forums.phpfreaks.com/topic/23614-frames/#findComment-107220 Share on other sites More sharing options...
piet bierbuik Posted October 11, 2006 Author Share Posted October 11, 2006 thats not working,when i open all.php (frameset) it opens left.php and right.php. but right.php is redirected to all.php.so now it will redirect all the time to all.php so it loops and give's me constant all.php Quote Link to comment https://forums.phpfreaks.com/topic/23614-frames/#findComment-107364 Share on other sites More sharing options...
HuggieBear Posted October 11, 2006 Share Posted October 11, 2006 This can be done using JavaScript...See [url=http://www.phpfreaks.com/forums/index.php/topic,107668.0.html]this post[/url]... I included some codeRegardsHuggie Quote Link to comment https://forums.phpfreaks.com/topic/23614-frames/#findComment-107369 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.