Hi all,
I am experiencing a problem with the "pound sign (#) when passed to a file as part of a query string. I have a "exit" page on my site that I can pass a variable called "$link" to. $link is a string and can be any URL that you want to forward the user to. The problem is, if I pass it a $link value that has an HTML anchor at the end, it drops the anchor off altogether.
For example, if I reference the page with:
exit.html?link=http://www.something.com/pagename.html#bottom
the script seems to think that the value of the $link variable is only:
http://www.something.com/pagename.html
instead of:
http://www.something.com/pagename.html#bottom
Is it somehow treating the # sign as a line-comment or something? How can I create a string with the whole URL, including the anchor?
Thanks!