louisjade Posted September 12, 2007 Share Posted September 12, 2007 hi i have a include script running at the side of my page for the menu - with all the links when i click the links it opens in a new page with all my banners menu etc gone, how can i get it to open in a frame of the orignal page (index page) Thanks louis Quote Link to comment https://forums.phpfreaks.com/topic/69041-help-with-inculde/ Share on other sites More sharing options...
ReMuSoMeGa Posted September 12, 2007 Share Posted September 12, 2007 im guessing you are using a frameset? On the other frame (not the menus) define the frame with a name. And on the page that you include all the menu links, make sure the <a hrefs> all include this attribute : target="Frame_Name" frame_name being the name of the frame I just told you to define. Quote Link to comment https://forums.phpfreaks.com/topic/69041-help-with-inculde/#findComment-347093 Share on other sites More sharing options...
colombian Posted September 12, 2007 Share Posted September 12, 2007 For the most part, includes are not used in frames. Why use an include if you can have the menu on the frame (html/php) page itself? Maybe if you explain a bit more what you have someone can help you. Quote Link to comment https://forums.phpfreaks.com/topic/69041-help-with-inculde/#findComment-347098 Share on other sites More sharing options...
louisjade Posted September 12, 2007 Author Share Posted September 12, 2007 basicly i have 2 main files, o ne has the layout which is a table with the header, this file is made out of tables not a frame set, it also has two other spaces on the table one were the include menu file goes, and the other were the context is ment to go so my menu file with my links in gets loaded into the main page, right? - (this works) Then the links are linked to diffrent files with just text in when i click the links i want the text to appear in the spare slot of the table if this is possible? Quote Link to comment https://forums.phpfreaks.com/topic/69041-help-with-inculde/#findComment-347101 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.