URL query string AND internal page link ?
Posted: Mon Oct 01, 2012 4:15 pm
I want to have an anchor link with a target of the same page, but with a $_GET query string AND a reference to an internal #link. That is, I want to refresh the page (for pagination) and return it to the appropriate place on the page, which is several scrolls from the top. When I try to do this like:it ignores the internal link. When I try thisit gets totally lost!
But this works just fine, except of course it contains no $_GET data:
I haven't found anything useful by searching the web.
Code: Select all
<a href='index.php#comments?start=10'>Next</a>Code: Select all
<a href='index.php?start=10#comments'>Next</a>But this works just fine, except of course it contains no $_GET data:
Code: Select all
<a href='index.php#comments'>Next</a>