I have a very basic problem. I need to be able to use internal linking ( <a name = "Name"></a> and <a href="#Name"> Link here</a>, ) with my script but it just doesn't seem to be working with my current code...
echo '<a name="',$data[name],'"></a>';
You can check the script out here: http://skullknight.net/php/glossary.php
For an example of where it doesn't work, scroll down to "Hawk of Darkness" and click the link there "See also Prophecy..". The href points to "#Prophecy of the Hawk" which exists when I view the source, however, the link simply takes me to the top of the page.
Am I messing up the syntax or something? This is a very basic element of HTML that I've used for years, but suddenly when I migrate it to PHP, it stops functioning... Please help!