Newbie link question
Posted: Fri Nov 07, 2003 12:25 am
Hi,
I am using a simple php script to generate the structure of a site; header, menu, main, footer. The essense of the code is like this (I have removed the table stuff):
<body>
<?php include ("head.html"); ?>
<?php include ("menu.html"); ?>
<?php include ("mainpage.html"); ?>
<?php include ("footer.html"); ?>
</body>
It works fine when the included pages are pure html. However, one of the menu options shows a page from another site in the main area, like this:
<?php
include ("http://www.be.no/FMPro?-DB=foretak&-Lay ... 2833&-find");
?>
The page shows up as expected, but some of the data base links (such as SØK.040.1) on the external page cause problems. When I hover the cursor over this link the start of the URL
http://www.be.no/FMPro?-DB=Omrader&-lay ... 2833&-Find
(i.e. http://www.be.no/) is replaced with http://www.mysite.com/. The probels is obviously caused by my PHP script, as when the page is shown non-embedded all links on it work fine.
Any ideas how this could be dealt with?
Ragards.
I am using a simple php script to generate the structure of a site; header, menu, main, footer. The essense of the code is like this (I have removed the table stuff):
<body>
<?php include ("head.html"); ?>
<?php include ("menu.html"); ?>
<?php include ("mainpage.html"); ?>
<?php include ("footer.html"); ?>
</body>
It works fine when the included pages are pure html. However, one of the menu options shows a page from another site in the main area, like this:
<?php
include ("http://www.be.no/FMPro?-DB=foretak&-Lay ... 2833&-find");
?>
The page shows up as expected, but some of the data base links (such as SØK.040.1) on the external page cause problems. When I hover the cursor over this link the start of the URL
http://www.be.no/FMPro?-DB=Omrader&-lay ... 2833&-Find
(i.e. http://www.be.no/) is replaced with http://www.mysite.com/. The probels is obviously caused by my PHP script, as when the page is shown non-embedded all links on it work fine.
Any ideas how this could be dealt with?
Ragards.