html - How do i pass a div id into a php pagination url here is my code example

one text

Solution:

I got this somewhere here on stackoverflow and it answered my question perfectly

    <script>
if (window.location.hash == "") {
      window.location = window.location + "#sectionid";
}
</script>

my url became <a href="'.$_GET['sectionid'].'?&page=' .$j. '" id="page_a_link" style="color:#ac5f42"> Next </a>

Thanks Stackoverflow after weeks of looking for solution!!!!

Source