Lid |
|
Hallo, ik ben dus een volledige sukkel in php maar ik was op zoek om iframes te vervangen en kwam ik bij php terecht.
Nu is het probleem als ik mijn site open en klik om naar een nieuwe pagina te gaan wordt het geopend in een nieuw tablad. Eenmaal je in het nieuw tablad zit werkt alles perfect. Hoe kan ik dit oplossen dit is mijn script:
<?php
$GetPage= "home";
if((isset($_GET["page"])==true) && ($_GET["page"] != "")){
$GetPage = $_GET["page"];
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//NL" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="nl">
<head>
<title>Convivo</title>
<meta http-equiv="Content-Type" content="text/html"; charset="utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta http-equiv="language" content="NL" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
<link rel="icon" type="image/png" href="images/favicon.ico">
</head>
<body>
<div id="center">
<center>
<br />
<!--logo-->
<img src="images/logo1.png" width="479" height="156" />
<br /><br />
<div id="content_top">
<br />
<!--menu-->
<hr size="1" width="850" />
<a href="?page=home" target="frame">HOME</a> •
<a href="?page=wie" target="frame">WIE ZIJN WE</a> •
<a href="?page=wat" target="frame">WAT DOEN WE</a> •
<a href="?page=referenties" target="frame">REFERENTIES</a> •
<a href="?page=contact" target="frame">CONTACT</a>
<hr size="1" width="850" />
</div>
<div id="content_middle">
<!--dia-->
<img src="dia/dia1.jpg" height="200" width="850" />
<hr size="1" width="850" />
<!--pagina's-->
<div style="width:850px;">
<?php include ($GetPage.".php"); ?>
</div>
</div>
<img src="images/content_bottom.png" width="906" height="51" />
<br /><br />
<!--footer-->
<div id="footer">
<br /><br />
<font size="2" >© con-vivo.be</font>
</div>
<br />
</center>
</div>
</body>
</html>
<?php $GetPage= "home"; if((isset($_GET["page"])==true) && ($_GET["page"] != "")){ $GetPage = $_GET["page"]; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//NL" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="nl"> <head> <title>Convivo</title> <meta http-equiv="Content-Type" content="text/html"; charset="utf-8" /> <meta name="description" content="" /> <meta name="keywords" content="" /> <meta http-equiv="language" content="NL" /> <link rel="stylesheet" href="css/style.css" type="text/css" /> <link rel="icon" type="image/png" href="images/favicon.ico"> </head> <body> <div id="center"> <center> <br /> <!--logo--> <img src="images/logo1.png" width="479" height="156" /> <br /><br /> <div id="content_top"> <br /> <!--menu--> <hr size="1" width="850" /> <a href="?page=home" target="frame">HOME</a> • <a href="?page=wie" target="frame">WIE ZIJN WE</a> • <a href="?page=wat" target="frame">WAT DOEN WE</a> • <a href="?page=referenties" target="frame">REFERENTIES</a> • <a href="?page=contact" target="frame">CONTACT</a> <hr size="1" width="850" /> </div> <div id="content_middle"> <!--dia--> <img src="dia/dia1.jpg" height="200" width="850" /> <hr size="1" width="850" /> <!--pagina's--> <div style="width:850px;"> <?php include ($GetPage.".php"); ?> </div> </div> <img src="images/content_bottom.png" width="906" height="51" /> <br /><br /> <!--footer--> <div id="footer"> <br /><br /> <font size="2" >© con-vivo.be</font> </div> <br /> </center> </div> </body> </html>
|