Jump to content


Photo

frames


  • Please log in to reply
3 replies to this topic

#1 piet bierbuik

piet bierbuik
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 10 October 2006 - 11:34 PM

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)

#2 hostfreak

hostfreak
  • Members
  • PipPipPip
  • Advanced Member
  • 581 posts

Posted 10 October 2006 - 11:38 PM

At the top of the page, directly under the "<?php" tag, put:
header("Location: all.php");
Note that it must be at the top of the page. Put that on any page you want redirected back to all.php.

#3 piet bierbuik

piet bierbuik
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 11 October 2006 - 11:06 AM

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

#4 HuggieBear

HuggieBear
  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 11 October 2006 - 11:17 AM

This can be done using JavaScript...

See this post... I included some code

Regards
Huggie
Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users