Jump to content

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/148979-solved-help-with-frames/
Share on other sites

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.

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.