Jump to content

Archived

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

donnieboy

PHP page linking...?

Recommended Posts

I have any easy question for you, I just don't know for sure how to do it.

 

I have a page (A) and it has an iframe in it with a menu at the top that links other pages into the iframe so I can pop in different sections and sub menus without loading the whole page.

 

It all works fine, but I don't want a user to got directly to any of the pages that should only be inside of the frame directly making it look stupid. I'll call these little child pages (B).

 

Now how can I do it with PHP so pages (B) can only be accessed inside of the iframe in page (A)?

 

A cookie, or is there an easier way?

 

To be honest I don't know much about cookies.

 

Thanks

Share this post


Link to post
Share on other sites

Don't use iframes. 

 

Put the other pages outside the webroot, and have a master php file that includes them.

Share this post


Link to post
Share on other sites

×
×
  • Create New...

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.