Jump to content


Photo

Is this possible ?


  • Please log in to reply
2 replies to this topic

#1 snapper64

snapper64
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 22 June 2006 - 10:56 AM

Hi Guys,

I need to prevent index.php being accessed directly ie [a href=\"http://www.mydomain.com/index.php\" target=\"_blank\"]http://www.mydomain.com/index.php[/a]. People should only be able to access it when they are viewing [a href=\"http://www.mydomain.com/main.html\" target=\"_blank\"]http://www.mydomain.com/main.html[/a] - this page has 4 frames, index.php is the main one. I only want people to view index.php through main.html.

Is this possible ? Also if they try viewing it directly they need to be redirected to main.html. How would i go about this ?

Thanks,

Charlie

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 22 June 2006 - 11:15 AM

There are lots of disadvantages to frames, but if you really want to use them then you'll need a javascript solution such as the code shown at [a href=\"http://javascript.internet.com/navigation/force-frames.html\" target=\"_blank\"]http://javascript.internet.com/navigation/force-frames.html[/a]

And this is not a php question, so I'm relocating it to the javascript forum.
Legend has it that reading the manual never killed anyone.
My site

#3 snapper64

snapper64
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 22 June 2006 - 11:26 AM

Thanks for the quick reply. I absolutely hate frames, however they are the best option in these circumstances.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users