Jump to content

Archived

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

piet bierbuik

frames

Recommended Posts

hi i work in frames.
i have all.php, left.php and right.php

i want people to stay on all.php
so if they go to: www.mydomain.com/left.php they get redirected(or blocked) to all.php

is this possible ?(i hope it can be done with php other options are welcome)

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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 code

Regards
Huggie

Share this post


Link to post
Share on other sites

×

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.