On my site I create 2 files for each new page I create, a php file and an html file.
I put all of the content in the html file and embed that file's url in the php file. (basically make it so the actual link is to the php file, so it includes the html page in the middle of the site while keeping the blocks around it intact)
I am trying to link some text on my articles on the home page to an anchor that is in the html code of another page. (So, the clickable link has to be associated with "games.php", but I want it to find the anchor on "games.html" which is called by the php page.)
Is there a way to do this?
Here is the code for the php file:
Code:
<?PHP
$index = 1;
if (!IsSet($mainfile)) { include ('mainfile.php'); }
include("header.php");
OpenTable();
include ("games.htm");
CloseTable();
include("footer.php");
?>
As you can see, when someone clicks on "games.php", the code includes "games.htm"...
But since my links don't go directly to "games.htm", I can't get it to go to the anchored spot on the html...
(I tried "/games.php#darkfuture" and "/games.php#/games.htm#darkfuture")