Ok, here's the situation. I have a program called list.php4 of which I pass a variable and have an lettered index to make finding the results easier. The links for the index look like this:
list.php4?var=foo#d
Currently the parser doesn't know the #d is supposed to be a part of the anchor to another part of the page. How can I distinguish the two? Is there an alternative?
well, you could add a meta tag to reload the page with the anchor:
<meta http-equiv="refresh" content="1;URL=#d">
don't know if it would work or not. too lazy to try, but might be an option to at least check.
Disclaimer: Don't know if this will work (aka untested code)
create your index link like this:
list.php4?var=foo&#d
The ampersand will terminate the first variable pair. Thus, the right value is passed for the first variable.
Kai
<?
...
// Make a link as a variable $URL = list.php4?var=foo&#d";
// Use this tag to make capture the string variable echo "<a href= \"$URL\"> ... </a>";
?>
Hope this helps.
Mike.