dean7 Posted March 11, 2009 Share Posted March 11, 2009 Hi, i know people say dont use frames but i use them but ive got stuck this is nav.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <!-- body { background-color: #999999; } --> </style></head> </head> <body> <p> </p> <p>News</p> <p>Blogs</p> <p>Games</p> <p>Help</p> <p>Contact</p> <p>About </p> <p>Faqs</p> <p></p> </body> </html> When i want to hyperlink them to another page how would i do it so it wouldnt open into another tab, becuase the way i try <a href="name here" target='mainframe'>name here</a> doesnt seem to open it in the same tab. I all so have another problem, when i make new pages i want the frames to still show but everytime i try it it just shows it empty. This is the middle.php <? session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> <!-- body { background-color: #999999; } --> </style></head> </head> <body> <p>Welcome to the members area..</p> Is there any way that when i make new pages it will still show the frame?. If there is how would i edit it so it contains different data? Thanks for reading, and for your help. Quote Link to comment https://forums.phpfreaks.com/topic/148979-solved-help-with-frames/ Share on other sites More sharing options...
lonewolf217 Posted March 11, 2009 Share Posted March 11, 2009 where is your index page that designates the frames ? Quote Link to comment https://forums.phpfreaks.com/topic/148979-solved-help-with-frames/#findComment-782267 Share on other sites More sharing options...
dean7 Posted March 11, 2009 Author Share Posted March 11, 2009 what the frameset page? Quote Link to comment https://forums.phpfreaks.com/topic/148979-solved-help-with-frames/#findComment-782269 Share on other sites More sharing options...
lonewolf217 Posted March 11, 2009 Share Posted March 11, 2009 yes, these pages are of no help at all. we would need to see the frameset page and the page you are linking from to be of any help. Quote Link to comment https://forums.phpfreaks.com/topic/148979-solved-help-with-frames/#findComment-782275 Share on other sites More sharing options...
dean7 Posted March 11, 2009 Author Share Posted March 11, 2009 ok, This is the frameset page <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Main Page</title> </head> <frameset rows="*" cols="115,*" framespacing="0" frameborder="no" border="0"> <frame src="nav.php" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" /> <frame src="middle.php" name="mainFrame" id="mainFrame" /> </frameset> <noframes><body> </body> </noframes></html> And i want it so say for any sake the news page i want to hyperlink it to news.php just when i do it the frames dont show or it opens it in new tab. Quote Link to comment https://forums.phpfreaks.com/topic/148979-solved-help-with-frames/#findComment-782280 Share on other sites More sharing options...
lonewolf217 Posted March 11, 2009 Share Posted March 11, 2009 where are you linking from ? you said nav.php but I dont see any links on that page? One thing to try, I see in your frameset you have name="mainFrame" but in your original post you said target="mainframe". try to fix the case sensitivity and see if that works Quote Link to comment https://forums.phpfreaks.com/topic/148979-solved-help-with-frames/#findComment-782311 Share on other sites More sharing options...
dean7 Posted March 11, 2009 Author Share Posted March 11, 2009 yh it works now . Thank for your help.. Quote Link to comment https://forums.phpfreaks.com/topic/148979-solved-help-with-frames/#findComment-782317 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.